Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
INMOST
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Terekhov
INMOST
Commits
b44ff0bd
Commit
b44ff0bd
authored
Jan 16, 2015
by
Kirill Terekhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix nonzero initial solution in BiCGStab(L)
solver_test000 now provides nonzero initial solution
parent
3511b71c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Tests/solver_test000/CMakeLists.txt
Tests/solver_test000/CMakeLists.txt
+1
-1
Tests/solver_test000/main.cpp
Tests/solver_test000/main.cpp
+1
-1
solver_bcgsl.hpp
solver_bcgsl.hpp
+1
-1
No files found.
Tests/solver_test000/CMakeLists.txt
View file @
b44ff0bd
...
...
@@ -33,7 +33,7 @@ if(USE_SOLVER_PETSC)
add_test
(
NAME solver_test000_serial_petsc COMMAND $<TARGET_FILE:solver_test000> 0 2
)
endif
()
if
(
USE_SOLVER_T
IR
LINOS
)
if
(
USE_SOLVER_T
RI
LINOS
)
add_test
(
NAME solver_test000_serial_trilinos_aztec COMMAND $<TARGET_FILE:solver_test000> 0 3
)
add_test
(
NAME solver_test000_serial_trilinos_ifpack COMMAND $<TARGET_FILE:solver_test000> 0 4
)
add_test
(
NAME solver_test000_serial_trilinos_ml COMMAND $<TARGET_FILE:solver_test000> 0 5
)
...
...
Tests/solver_test000/main.cpp
View file @
b44ff0bd
...
...
@@ -62,7 +62,7 @@ int main(int argc,char ** argv)
{
A
[
i
][
i
]
=
10.0
;
b
[
i
]
=
i
;
x
[
i
]
=
0.
0
;
x
[
i
]
=
0.
1
;
}
if
(
rank
==
0
)
std
::
cout
<<
"next call S.SetMatrix(A);"
<<
std
::
endl
;
S
.
SetMatrix
(
A
);
// Compute the preconditioner for the original matrix
...
...
solver_bcgsl.hpp
View file @
b44ff0bd
...
...
@@ -171,7 +171,7 @@ namespace INMOST
// r[0] = r[0] - A x
Alink
->
MatVec
(
-
1
,
SOL
,
1
,
r
[
0
]);
//global multiplication, r probably needs an update
info
->
Update
(
r
[
0
]);
// r is good
std
::
copy
(
x0
.
Begin
(),
x0
.
End
(),
SOL
.
Begin
());
//x0 = x
std
::
copy
(
SOL
.
Begin
(),
SOL
.
End
(),
x0
.
Begin
());
//x0 = x
std
::
fill
(
SOL
.
Begin
(),
SOL
.
End
(),
0.0
);
//x = 0
}
std
::
copy
(
r
[
0
].
Begin
(),
r
[
0
].
End
(),
r_tilde
.
Begin
());
// r_tilde = r[0]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment