diff --git a/opm/simulators/flow/FlowProblem.hpp b/opm/simulators/flow/FlowProblem.hpp index 2989a2d63..428135d76 100644 --- a/opm/simulators/flow/FlowProblem.hpp +++ b/opm/simulators/flow/FlowProblem.hpp @@ -323,7 +323,7 @@ public: // 1. Command line value (--num-pressure-points-equil=N) // 2. EQLDIMS item 2 // Default value is defined in opm-common/src/opm/input/eclipse/share/keywords/000_Eclipse100/E/EQLDIMS - if (Parameters::isSet("NumPressurePointsEquil")) + if (Parameters::isSet()) { this->numPressurePointsEquil_ = Parameters::get(); } else { diff --git a/opm/simulators/linalg/FlowLinearSolverParameters.hpp b/opm/simulators/linalg/FlowLinearSolverParameters.hpp index b231a72e0..bad8e1cb2 100644 --- a/opm/simulators/linalg/FlowLinearSolverParameters.hpp +++ b/opm/simulators/linalg/FlowLinearSolverParameters.hpp @@ -279,7 +279,7 @@ namespace Opm cpr_reuse_setup_ = Parameters::get(); cpr_reuse_interval_ = Parameters::get(); - if (!Parameters::isSet("LinearSolver") && cprRequestedInDataFile) { + if (!Parameters::isSet() && cprRequestedInDataFile) { linsolver_ = "cpr"; } else { linsolver_ = Parameters::get(); diff --git a/opm/simulators/linalg/ISTLSolver.hpp b/opm/simulators/linalg/ISTLSolver.hpp index 3fa327299..1c003e159 100644 --- a/opm/simulators/linalg/ISTLSolver.hpp +++ b/opm/simulators/linalg/ISTLSolver.hpp @@ -224,8 +224,8 @@ std::unique_ptr blockJacobiAdjacency(const Grid& grid, para.linsolver_ = "cprw"; parameters_.push_back(para); prm_.push_back(setupPropertyTree(parameters_[0], - Parameters::isSet("LinearSolverMaxIter"), - Parameters::isSet("LinearSolverReduction"))); + Parameters::isSet(), + Parameters::isSet())); } { FlowLinearSolverParameters para; @@ -233,8 +233,8 @@ std::unique_ptr blockJacobiAdjacency(const Grid& grid, para.linsolver_ = "ilu0"; parameters_.push_back(para); prm_.push_back(setupPropertyTree(parameters_[1], - Parameters::isSet("LinearSolverMaxIter"), - Parameters::isSet("LinearSolverReduction"))); + Parameters::isSet(), + Parameters::isSet())); } // ------------ } else { @@ -242,8 +242,8 @@ std::unique_ptr blockJacobiAdjacency(const Grid& grid, assert(parameters_.size() == 1); assert(prm_.empty()); prm_.push_back(setupPropertyTree(parameters_[0], - Parameters::isSet("LinearSolverMaxIter"), - Parameters::isSet("LinearSolverReduction"))); + Parameters::isSet(), + Parameters::isSet())); } flexibleSolver_.resize(prm_.size());