mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix verbosity parameter used for parallel istl solvers.
These are not aware whether they are parallel or not. Therefore the user should only specify a verbose verbosity only on one rank. With this commit we do this on the process responsible for terminal output.
This commit is contained in:
parent
df2b1190de
commit
9ed02b33bc
@ -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