mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ISTLSolverEbos: fix valgrind complaint that isIORank_ is not initialized
like most of the rest of the code, we now simply assume that rank 0 does all printing.
This commit is contained in:
parent
1b8124cc31
commit
f1d3be27a7
@ -492,7 +492,9 @@ protected:
|
||||
// TODO: Revise when linear solvers interface opm-core is done
|
||||
// Construct linear solver.
|
||||
// GMRes solver
|
||||
int verbosity = ( isIORank_ ) ? parameters_.linear_solver_verbosity_ : 0;
|
||||
int verbosity = 0;
|
||||
if (simulator_.gridView().comm().rank() == 0)
|
||||
verbosity = parameters_.linear_solver_verbosity_;
|
||||
|
||||
if ( parameters_.newton_use_gmres_ ) {
|
||||
Dune::RestartedGMResSolver<Vector> linsolve(opA, sp, precond,
|
||||
@ -836,7 +838,6 @@ protected:
|
||||
mutable int iterations_;
|
||||
mutable bool converged_;
|
||||
boost::any parallelInformation_;
|
||||
bool isIORank_;
|
||||
|
||||
std::unique_ptr<Matrix> matrix_;
|
||||
Vector *rhs_;
|
||||
|
Loading…
Reference in New Issue
Block a user