diff --git a/opm/simulators/linalg/FlowLinearSolverParameters.hpp b/opm/simulators/linalg/FlowLinearSolverParameters.hpp index 3feb92c88..a9dd35c21 100644 --- a/opm/simulators/linalg/FlowLinearSolverParameters.hpp +++ b/opm/simulators/linalg/FlowLinearSolverParameters.hpp @@ -212,10 +212,6 @@ template struct OpenclIluParallel { static constexpr bool value = true; }; // note: false should only be used in debug -template -struct LinearSolverVerbosity -{ static constexpr int value = 0; }; - } // namespace Opm::Parameters namespace Opm { @@ -253,7 +249,7 @@ struct FlowLinearSolverParameters relaxed_linear_solver_reduction_ = Parameters::get(); linear_solver_maxiter_ = Parameters::get(); linear_solver_restart_ = Parameters::get(); - linear_solver_verbosity_ = Parameters::get(); + linear_solver_verbosity_ = Parameters::Get(); ilu_relaxation_ = Parameters::get(); ilu_fillin_level_ = Parameters::get(); ilu_milu_ = convertString2Milu(Parameters::get()); @@ -291,7 +287,7 @@ struct FlowLinearSolverParameters ("The maximum number of iterations of the linear solver"); Parameters::registerParam ("The number of iterations after which GMRES is restarted"); - Parameters::registerParam + Parameters::Register ("The verbosity level of the linear solver (0: off, 2: all)"); Parameters::registerParam ("The relaxation factor of the linear solver's ILU preconditioner"); @@ -349,6 +345,8 @@ struct FlowLinearSolverParameters "to determine valid platform IDs"); Parameters::registerParam ("Parallelize ILU decomposition and application on GPU"); + + Parameters::SetDefault(0); } FlowLinearSolverParameters() { reset(); }