mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-27 09:40:59 -06:00
adjust to EWOMS_PARAM_IS_SET macro removal
This commit is contained in:
parent
2da4b8503e
commit
46c3402eba
@ -322,7 +322,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 (EWOMS_PARAM_IS_SET(TypeTag, int, NumPressurePointsEquil))
|
||||
if (Parameters::isSet<TypeTag,int>("NumPressurePointsEquil"))
|
||||
{
|
||||
this->numPressurePointsEquil_ = EWOMS_GET_PARAM(TypeTag, int, NumPressurePointsEquil);
|
||||
} else {
|
||||
|
@ -279,7 +279,7 @@ namespace Opm
|
||||
cpr_reuse_setup_ = EWOMS_GET_PARAM(TypeTag, int, CprReuseSetup);
|
||||
cpr_reuse_interval_ = EWOMS_GET_PARAM(TypeTag, int, CprReuseInterval);
|
||||
|
||||
if (!EWOMS_PARAM_IS_SET(TypeTag, std::string, LinearSolver) && cprRequestedInDataFile) {
|
||||
if (!Parameters::isSet<TypeTag, std::string>("LinearSolver") && cprRequestedInDataFile) {
|
||||
linsolver_ = "cpr";
|
||||
} else {
|
||||
linsolver_ = EWOMS_GET_PARAM(TypeTag, std::string, 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],
|
||||
EWOMS_PARAM_IS_SET(TypeTag, int, LinearSolverMaxIter),
|
||||
EWOMS_PARAM_IS_SET(TypeTag, double, LinearSolverReduction)));
|
||||
Parameters::isSet<TypeTag,int>("LinearSolverMaxIter"),
|
||||
Parameters::isSet<TypeTag,double>("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],
|
||||
EWOMS_PARAM_IS_SET(TypeTag, int, LinearSolverMaxIter),
|
||||
EWOMS_PARAM_IS_SET(TypeTag, double, LinearSolverReduction)));
|
||||
Parameters::isSet<TypeTag,int>("LinearSolverMaxIter"),
|
||||
Parameters::isSet<TypeTag,double>("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],
|
||||
EWOMS_PARAM_IS_SET(TypeTag, int, LinearSolverMaxIter),
|
||||
EWOMS_PARAM_IS_SET(TypeTag, double, LinearSolverReduction)));
|
||||
Parameters::isSet<TypeTag,int>("LinearSolverMaxIter"),
|
||||
Parameters::isSet<TypeTag,double>("LinearSolverReduction")));
|
||||
}
|
||||
flexibleSolver_.resize(prm_.size());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user