change verbosity level setting for cpr to be more finegrained

This commit is contained in:
hnil 2019-03-18 16:11:04 +01:00 committed by Atgeirr Flø Rasmussen
parent b27e56e386
commit 41acbcf861
2 changed files with 9 additions and 4 deletions

View File

@ -427,8 +427,11 @@ private:
// Linear solver parameters
const double tolerance = param_->cpr_solver_tol_;
const int maxit = param_->cpr_max_iter_;
const int verbosity = ( param_->cpr_solver_verbose_ &&
comm_.communicator().rank()==0 ) ? 1 : 0;
int verbosity = 0;
if (comm_.communicator().rank() == 0) {
verbosity = param_->cpr_solver_verbose_;
}
if ( param_->cpr_ell_solvetype_ == 0)
{
#if DUNE_VERSION_NEWER(DUNE_ISTL, 2, 6)

View File

@ -197,8 +197,10 @@ createAMGPreconditionerPointer(Op& opA, const double relax, const P& comm,
const Vector& weights)
{
using AMG = BlackoilAmg<Op,S,C,P,PressureEqnIndex,PressureVarIndex>;
const int verbosity = ( params.cpr_solver_verbose_ && comm.communicator().rank() == 0 ) ? 1 : 0;
int verbosity = 0;
if (comm.communicator().rank() == 0) {
verbosity = params.cpr_solver_verbose_;
}
// TODO: revise choice of parameters
int coarsenTarget=1200;
using Criterion = C;