NewtonMaxError moved to TypeTag-free parameter system

This commit is contained in:
Arne Morten Kvarving 2024-07-06 10:22:47 +02:00
parent 0195f8f113
commit 0bbcb09480
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ public:
{
const auto& constraintsMap = this->model().linearizer().constraintsMap();
this->lastError_ = this->error_;
Scalar newtonMaxError = Parameters::get<TypeTag, Parameters::NewtonMaxError>();
Scalar newtonMaxError = Parameters::Get<Parameters::NewtonMaxError<Scalar>>();
// calculate the error as the maximum weighted tolerance of
// the solution's residual

View File

@ -137,7 +137,7 @@ namespace Opm {
Parameters::Hide<Parameters::PredeterminedTimeStepsFile>();
// flow also does not use the eWoms Newton method
Parameters::hideParam<TypeTag, Parameters::NewtonMaxError>();
Parameters::Hide<Parameters::NewtonMaxError<Scalar>>();
Parameters::Hide<Parameters::NewtonTolerance<Scalar>>();
Parameters::hideParam<TypeTag, Parameters::NewtonTargetIterations>();
Parameters::Hide<Parameters::NewtonVerbose>();