Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hyteg
hyteg
Commits
891ae108
Commit
891ae108
authored
Jan 12, 2022
by
Marcel Koch
Browse files
switch to GMRes
parent
36a664a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hyteg/ginkgo/GinkgoBlockSolver.hpp
View file @
891ae108
...
@@ -305,7 +305,7 @@ class GinkgoBlockSolver : public Solver< OperatorType >
...
@@ -305,7 +305,7 @@ class GinkgoBlockSolver : public Solver< OperatorType >
auto
log
=
gko
::
share
(
gko
::
log
::
Convergence
<
valueType
>::
create
(
solver_exec_
)
);
auto
log
=
gko
::
share
(
gko
::
log
::
Convergence
<
valueType
>::
create
(
solver_exec_
)
);
if
(
monolithic_matrix_
->
get_size
()
)
if
(
monolithic_matrix_
->
get_size
()
)
{
{
solver_
=
gko
::
solver
::
Bicgstab
<
valueType
>::
build
()
solver_
=
gko
::
solver
::
Gmres
<
valueType
>::
build
()
.
with_criteria
(
gko
::
share
(
gko
::
stop
::
ResidualNorm
<>::
build
()
.
with_criteria
(
gko
::
share
(
gko
::
stop
::
ResidualNorm
<>::
build
()
.
with_baseline
(
gko
::
stop
::
mode
::
initial_resnorm
)
.
with_baseline
(
gko
::
stop
::
mode
::
initial_resnorm
)
.
with_reduction_factor
(
1e-30
)
.
with_reduction_factor
(
1e-30
)
...
@@ -381,7 +381,7 @@ class GinkgoBlockSolver : public Solver< OperatorType >
...
@@ -381,7 +381,7 @@ class GinkgoBlockSolver : public Solver< OperatorType >
std
::
shared_ptr
<
gko
::
mpi
::
communicator
>
comm_
;
std
::
shared_ptr
<
gko
::
mpi
::
communicator
>
comm_
;
std
::
shared_ptr
<
gko
::
distributed
::
Partition
<
int32_t
>
>
part_
;
std
::
shared_ptr
<
gko
::
distributed
::
Partition
<
int32_t
>
>
part_
;
std
::
unique_ptr
<
gko
::
solver
::
Bicgstab
<
valueType
>
>
solver_
;
std
::
unique_ptr
<
gko
::
solver
::
Gmres
<
valueType
>
>
solver_
;
BlockPreconditioner_T
blockPreconditioner_
;
BlockPreconditioner_T
blockPreconditioner_
;
typename
OperatorType
::
srcType
::
template
FunctionType
<
int
>
num_
;
typename
OperatorType
::
srcType
::
template
FunctionType
<
int
>
num_
;
...
...
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