From 36b05f929589f54a7db8bd0bda2fdd28b3cfc091 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Fri, 5 Jul 2024 17:49:51 +0200 Subject: [PATCH] move NewtonVerbose to TypeTag-free parameter system --- opm/models/nonlinear/newtonmethod.hh | 8 ++------ opm/models/nonlinear/newtonmethodparameters.hh | 3 +-- 2 files changed, 3 insertions(+), 8 deletions(-) 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