mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
move NewtonVerbose to TypeTag-free parameter system
This commit is contained in:
parent
b76dd13afc
commit
36b05f9295
@ -81,10 +81,6 @@ struct NewtonConvergenceWriter<TypeTag, TTag::NewtonMethod> { using type = NullC
|
|||||||
|
|
||||||
namespace Opm::Parameters {
|
namespace Opm::Parameters {
|
||||||
|
|
||||||
template<class TypeTag>
|
|
||||||
struct NewtonVerbose<TypeTag, Properties::TTag::NewtonMethod>
|
|
||||||
{ static constexpr bool value = true; };
|
|
||||||
|
|
||||||
template<class TypeTag>
|
template<class TypeTag>
|
||||||
struct NewtonWriteConvergence<TypeTag, Properties::TTag::NewtonMethod>
|
struct NewtonWriteConvergence<TypeTag, Properties::TTag::NewtonMethod>
|
||||||
{ static constexpr bool value = false; };
|
{ static constexpr bool value = false; };
|
||||||
@ -166,7 +162,7 @@ public:
|
|||||||
{
|
{
|
||||||
LinearSolverBackend::registerParameters();
|
LinearSolverBackend::registerParameters();
|
||||||
|
|
||||||
Parameters::registerParam<TypeTag, Parameters::NewtonVerbose>
|
Parameters::Register<Parameters::NewtonVerbose>
|
||||||
("Specify whether the Newton method should inform "
|
("Specify whether the Newton method should inform "
|
||||||
"the user about its progress or not");
|
"the user about its progress or not");
|
||||||
Parameters::registerParam<TypeTag, Parameters::NewtonWriteConvergence>
|
Parameters::registerParam<TypeTag, Parameters::NewtonWriteConvergence>
|
||||||
@ -544,7 +540,7 @@ protected:
|
|||||||
*/
|
*/
|
||||||
bool verbose_() const
|
bool verbose_() const
|
||||||
{
|
{
|
||||||
return Parameters::get<TypeTag, Parameters::NewtonVerbose>() && (comm_.rank() == 0);
|
return Parameters::Get<Parameters::NewtonVerbose>() && (comm_.rank() == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -28,8 +28,7 @@
|
|||||||
namespace Opm::Parameters {
|
namespace Opm::Parameters {
|
||||||
|
|
||||||
//! Specifies whether the Newton method should print messages or not
|
//! Specifies whether the Newton method should print messages or not
|
||||||
template<class TypeTag, class MyTypeTag>
|
struct NewtonVerbose { static constexpr bool value = true; };
|
||||||
struct NewtonVerbose { using type = Properties::UndefinedProperty; };
|
|
||||||
|
|
||||||
//! Specifies whether the convergence rate and the global residual
|
//! Specifies whether the convergence rate and the global residual
|
||||||
//! gets written out to disk for every Newton iteration
|
//! gets written out to disk for every Newton iteration
|
||||||
|
Loading…
Reference in New Issue
Block a user