change verbosity level setting for cpr to be more finegrained

This commit is contained in:
hnil authored and Atgeirr Flø Rasmussen committed 2019-03-19 14:38:40 +01:00
1 parent b27e56e386
commit 41acbcf861
2 files changed
+9 -4

No files matched your search

+5 -2
View File
@@ -427,8 +427,11 @@ private:
// Linear solver parameters // Linear solver parameters
const double tolerance = param_->cpr_solver_tol_; const double tolerance = param_->cpr_solver_tol_;
const int maxit = param_->cpr_max_iter_; const int maxit = param_->cpr_max_iter_;
const int verbosity = ( param_->cpr_solver_verbose_ && int verbosity = 0;
comm_.communicator().rank()==0 ) ? 1 : 0; if (comm_.communicator().rank() == 0) {
verbosity = param_->cpr_solver_verbose_;
}
if ( param_->cpr_ell_solvetype_ == 0) if ( param_->cpr_ell_solvetype_ == 0)
{ {
#if DUNE_VERSION_NEWER(DUNE_ISTL, 2, 6) #if DUNE_VERSION_NEWER(DUNE_ISTL, 2, 6)
+4 -2
View File
@@ -197,8 +197,10 @@ createAMGPreconditionerPointer(Op& opA, const double relax, const P& comm,
const Vector& weights) const Vector& weights)
{ {
using AMG = BlackoilAmg<Op,S,C,P,PressureEqnIndex,PressureVarIndex>; 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 // TODO: revise choice of parameters
int coarsenTarget=1200; int coarsenTarget=1200;
using Criterion = C; using Criterion = C;