diff --git a/opm/autodiff/FullyImplicitBlackoilSolver.hpp b/opm/autodiff/FullyImplicitBlackoilSolver.hpp index df1126eed..37feea9d4 100644 --- a/opm/autodiff/FullyImplicitBlackoilSolver.hpp +++ b/opm/autodiff/FullyImplicitBlackoilSolver.hpp @@ -272,9 +272,9 @@ namespace Opm { /// residual mass balance (tol_cnv). bool getConvergence(const double dt); - const double dpMaxRel () const { return dp_max_rel_; } - const double dsMax () const { return ds_max_; } - const double drsMaxRel () const { return drs_max_rel_; } + const double dpMaxRel() const { return dp_max_rel_; } + const double dsMax() const { return ds_max_; } + const double drsMaxRel() const { return drs_max_rel_; } }; } // namespace Opm diff --git a/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp b/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp index e2bfa67f3..857f9b5a5 100644 --- a/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp +++ b/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp @@ -242,13 +242,13 @@ namespace { ADB::null() } ) { if (param.has("dp_max_rel")) { - dp_max_rel_ = param.get(std::string("dp_max_rel")); + dp_max_rel_ = param.getDefault("dp_max_rel", dp_max_rel_); } if (param.has("ds_max")) { - ds_max_ = param.get("ds_max"); + ds_max_ = param.getDefault("ds_max", ds_max_); } if (param.has("drs_max_rel")) { - drs_max_rel_ = param.get("drs_max_rel"); + drs_max_rel_ = param.getDefault("drs_max_rel", drs_max_rel_); } }