diff --git a/opm/models/nonlinear/newtonmethod.hh b/opm/models/nonlinear/newtonmethod.hh index 206294821..168936c2c 100644 --- a/opm/models/nonlinear/newtonmethod.hh +++ b/opm/models/nonlinear/newtonmethod.hh @@ -81,10 +81,6 @@ struct NewtonConvergenceWriter { using type = NullC namespace Opm::Parameters { -template -struct NewtonVerbose -{ static constexpr bool value = true; }; - template struct NewtonWriteConvergence { static constexpr bool value = false; }; @@ -166,7 +162,7 @@ public: { LinearSolverBackend::registerParameters(); - Parameters::registerParam + Parameters::Register ("Specify whether the Newton method should inform " "the user about its progress or not"); Parameters::registerParam @@ -544,7 +540,7 @@ protected: */ bool verbose_() const { - return Parameters::get() && (comm_.rank() == 0); + return Parameters::Get() && (comm_.rank() == 0); } /*! diff --git a/opm/models/nonlinear/newtonmethodparameters.hh b/opm/models/nonlinear/newtonmethodparameters.hh index 1019636ee..c54a0f26c 100644 --- a/opm/models/nonlinear/newtonmethodparameters.hh +++ b/opm/models/nonlinear/newtonmethodparameters.hh @@ -28,8 +28,7 @@ namespace Opm::Parameters { //! Specifies whether the Newton method should print messages or not -template -struct NewtonVerbose { using type = Properties::UndefinedProperty; }; +struct NewtonVerbose { static constexpr bool value = true; }; //! Specifies whether the convergence rate and the global residual //! gets written out to disk for every Newton iteration