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:
Andreas Lauser 2019-03-21 12:31:12 +01:00
parent 1b8124cc31
commit f1d3be27a7

View File

@ -492,7 +492,9 @@ protected:
// TODO: Revise when linear solvers interface opm-core is done // TODO: Revise when linear solvers interface opm-core is done
// Construct linear solver. // Construct linear solver.
// GMRes 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_ ) { if ( parameters_.newton_use_gmres_ ) {
Dune::RestartedGMResSolver<Vector> linsolve(opA, sp, precond, Dune::RestartedGMResSolver<Vector> linsolve(opA, sp, precond,
@ -836,7 +838,6 @@ protected:
mutable int iterations_; mutable int iterations_;
mutable bool converged_; mutable bool converged_;
boost::any parallelInformation_; boost::any parallelInformation_;
bool isIORank_;
std::unique_ptr<Matrix> matrix_; std::unique_ptr<Matrix> matrix_;
Vector *rhs_; Vector *rhs_;