mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-21 16:57:25 -06:00
Merge pull request #1123 from blattms/fix-parallel-istl-verbosity
Fix verbosity parameter used for parallel istl solvers.
This commit is contained in:
commit
29f3b86ef0
@ -329,12 +329,14 @@ namespace Opm
|
||||
// TODO: Revise when linear solvers interface opm-core is done
|
||||
// Construct linear solver.
|
||||
// GMRes solver
|
||||
int verbosity = ( isIORank_ ) ? parameters_.linear_solver_verbosity_ : 0;
|
||||
|
||||
if ( parameters_.newton_use_gmres_ ) {
|
||||
Dune::RestartedGMResSolver<Vector> linsolve(opA, sp, precond,
|
||||
parameters_.linear_solver_reduction_,
|
||||
parameters_.linear_solver_restart_,
|
||||
parameters_.linear_solver_maxiter_,
|
||||
parameters_.linear_solver_verbosity_);
|
||||
verbosity);
|
||||
// Solve system.
|
||||
linsolve.apply(x, istlb, result);
|
||||
}
|
||||
@ -342,7 +344,7 @@ namespace Opm
|
||||
Dune::BiCGSTABSolver<Vector> linsolve(opA, sp, precond,
|
||||
parameters_.linear_solver_reduction_,
|
||||
parameters_.linear_solver_maxiter_,
|
||||
parameters_.linear_solver_verbosity_);
|
||||
verbosity);
|
||||
// Solve system.
|
||||
linsolve.apply(x, istlb, result);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user