mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
updating due to removing of EWOMS_GET_PARAM
This commit is contained in:
parent
98543258d9
commit
7cc1880196
@ -200,7 +200,7 @@ public:
|
|||||||
OPM_TIMEBLOCK(problemWriteOutput);
|
OPM_TIMEBLOCK(problemWriteOutput);
|
||||||
// use the generic code to prepare the output fields and to
|
// use the generic code to prepare the output fields and to
|
||||||
// write the desired VTK files.
|
// write the desired VTK files.
|
||||||
if (EWOMS_GET_PARAM(TypeTag, bool, EnableWriteAllSolutions) || this->simulator().episodeWillBeOver()){
|
if (Parameters::get<TypeTag, Properties::EnableWriteAllSolutions>() || this->simulator().episodeWillBeOver()){
|
||||||
BaseType::writeOutput(verbose);
|
BaseType::writeOutput(verbose);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -95,12 +95,12 @@ public:
|
|||||||
EclNewtonMethod(Simulator& simulator) : ParentType(simulator)
|
EclNewtonMethod(Simulator& simulator) : ParentType(simulator)
|
||||||
{
|
{
|
||||||
errorPvFraction_ = 1.0;
|
errorPvFraction_ = 1.0;
|
||||||
relaxedMaxPvFraction_ = EWOMS_GET_PARAM(TypeTag, Scalar, EclNewtonRelaxedVolumeFraction);
|
relaxedMaxPvFraction_ = Parameters::get<TypeTag, Properties::EclNewtonRelaxedVolumeFraction>();
|
||||||
|
|
||||||
sumTolerance_ = 0.0; // this gets determined in the error calculation proceedure
|
sumTolerance_ = 0.0; // this gets determined in the error calculation proceedure
|
||||||
relaxedTolerance_ = EWOMS_GET_PARAM(TypeTag, Scalar, EclNewtonRelaxedTolerance);
|
relaxedTolerance_ = Parameters::get<TypeTag, Properties::EclNewtonRelaxedTolerance>();
|
||||||
|
|
||||||
numStrictIterations_ = EWOMS_GET_PARAM(TypeTag, int, EclNewtonStrictIterations);
|
numStrictIterations_ = Parameters::get<TypeTag, Properties::EclNewtonStrictIterations>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -146,7 +146,7 @@ public:
|
|||||||
{
|
{
|
||||||
const auto& constraintsMap = this->model().linearizer().constraintsMap();
|
const auto& constraintsMap = this->model().linearizer().constraintsMap();
|
||||||
this->lastError_ = this->error_;
|
this->lastError_ = this->error_;
|
||||||
Scalar newtonMaxError = EWOMS_GET_PARAM(TypeTag, Scalar, NewtonMaxError);
|
Scalar newtonMaxError = Parameters::get<TypeTag, Properties::NewtonMaxError>();
|
||||||
|
|
||||||
// calculate the error as the maximum weighted tolerance of
|
// calculate the error as the maximum weighted tolerance of
|
||||||
// the solution's residual
|
// the solution's residual
|
||||||
@ -219,8 +219,8 @@ public:
|
|||||||
|
|
||||||
// scale the tolerance for the total error with the pore volume. by default, the
|
// scale the tolerance for the total error with the pore volume. by default, the
|
||||||
// exponent is 1/3, i.e., cubic root.
|
// exponent is 1/3, i.e., cubic root.
|
||||||
Scalar x = EWOMS_GET_PARAM(TypeTag, Scalar, EclNewtonSumTolerance);
|
Scalar x = Parameters::get<TypeTag, Properties::EclNewtonSumTolerance>();
|
||||||
Scalar y = EWOMS_GET_PARAM(TypeTag, Scalar, EclNewtonSumToleranceExponent);
|
Scalar y = Parameters::get<TypeTag, Properties::EclNewtonSumToleranceExponent>();
|
||||||
sumTolerance_ = x*std::pow(sumPv, y);
|
sumTolerance_ = x*std::pow(sumPv, y);
|
||||||
|
|
||||||
this->endIterMsg() << " (max: " << this->tolerance_ << ", violated for " << errorPvFraction_*100 << "% of the pore volume), aggegate error: " << errorSum_ << " (max: " << sumTolerance_ << ")";
|
this->endIterMsg() << " (max: " << this->tolerance_ << ", violated for " << errorPvFraction_*100 << "% of the pore volume), aggegate error: " << errorSum_ << " (max: " << sumTolerance_ << ")";
|
||||||
|
Loading…
Reference in New Issue
Block a user