mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #5282 from akva2/parameters_isset_struct
adjust to Parameters::isSet change
This commit is contained in:
commit
b2c041acf2
@ -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<TypeTag,int>("NumPressurePointsEquil"))
|
||||
if (Parameters::isSet<TypeTag, Properties::NumPressurePointsEquil>())
|
||||
{
|
||||
this->numPressurePointsEquil_ = Parameters::get<TypeTag, Properties::NumPressurePointsEquil>();
|
||||
} else {
|
||||
|
@ -279,7 +279,7 @@ namespace Opm
|
||||
cpr_reuse_setup_ = Parameters::get<TypeTag, Properties::CprReuseSetup>();
|
||||
cpr_reuse_interval_ = Parameters::get<TypeTag, Properties::CprReuseInterval>();
|
||||
|
||||
if (!Parameters::isSet<TypeTag, std::string>("LinearSolver") && cprRequestedInDataFile) {
|
||||
if (!Parameters::isSet<TypeTag, Properties::LinearSolver>() && cprRequestedInDataFile) {
|
||||
linsolver_ = "cpr";
|
||||
} else {
|
||||
linsolver_ = Parameters::get<TypeTag, Properties::LinearSolver>();
|
||||
|
@ -224,8 +224,8 @@ std::unique_ptr<Matrix> blockJacobiAdjacency(const Grid& grid,
|
||||
para.linsolver_ = "cprw";
|
||||
parameters_.push_back(para);
|
||||
prm_.push_back(setupPropertyTree(parameters_[0],
|
||||
Parameters::isSet<TypeTag,int>("LinearSolverMaxIter"),
|
||||
Parameters::isSet<TypeTag,double>("LinearSolverReduction")));
|
||||
Parameters::isSet<TypeTag,Properties::LinearSolverMaxIter>(),
|
||||
Parameters::isSet<TypeTag,Properties::LinearSolverReduction>()));
|
||||
}
|
||||
{
|
||||
FlowLinearSolverParameters para;
|
||||
@ -233,8 +233,8 @@ std::unique_ptr<Matrix> blockJacobiAdjacency(const Grid& grid,
|
||||
para.linsolver_ = "ilu0";
|
||||
parameters_.push_back(para);
|
||||
prm_.push_back(setupPropertyTree(parameters_[1],
|
||||
Parameters::isSet<TypeTag,int>("LinearSolverMaxIter"),
|
||||
Parameters::isSet<TypeTag,double>("LinearSolverReduction")));
|
||||
Parameters::isSet<TypeTag,Properties::LinearSolverMaxIter>(),
|
||||
Parameters::isSet<TypeTag,Properties::LinearSolverReduction>()));
|
||||
}
|
||||
// ------------
|
||||
} else {
|
||||
@ -242,8 +242,8 @@ std::unique_ptr<Matrix> blockJacobiAdjacency(const Grid& grid,
|
||||
assert(parameters_.size() == 1);
|
||||
assert(prm_.empty());
|
||||
prm_.push_back(setupPropertyTree(parameters_[0],
|
||||
Parameters::isSet<TypeTag,int>("LinearSolverMaxIter"),
|
||||
Parameters::isSet<TypeTag,double>("LinearSolverReduction")));
|
||||
Parameters::isSet<TypeTag,Properties::LinearSolverMaxIter>(),
|
||||
Parameters::isSet<TypeTag,Properties::LinearSolverReduction>()));
|
||||
}
|
||||
flexibleSolver_.resize(prm_.size());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user