Commit 891ae108 authored by Marcel Koch's avatar Marcel Koch
Browse files

switch to GMRes

parent 36a664a4
...@@ -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_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment