mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #890 from akva2/remove_ewoms_register_param_macro
Remove ewoms register param macro
This commit is contained in:
@@ -72,11 +72,10 @@ namespace Linear {
|
||||
\
|
||||
static void registerParameters() \
|
||||
{ \
|
||||
EWOMS_REGISTER_PARAM(TypeTag, int, PreconditionerOrder, \
|
||||
"The order of the preconditioner"); \
|
||||
EWOMS_REGISTER_PARAM(TypeTag, Scalar, PreconditionerRelaxation, \
|
||||
"The relaxation factor of the " \
|
||||
"preconditioner"); \
|
||||
Parameters::registerParam<TypeTag, Properties::PreconditionerOrder> \
|
||||
("The order of the preconditioner"); \
|
||||
Parameters::registerParam<TypeTag, Properties::PreconditionerRelaxation> \
|
||||
("The relaxation factor of the preconditioner"); \
|
||||
} \
|
||||
\
|
||||
void prepare(IstlMatrix& matrix) \
|
||||
@@ -116,9 +115,8 @@ namespace Linear {
|
||||
\
|
||||
static void registerParameters() \
|
||||
{ \
|
||||
EWOMS_REGISTER_PARAM(TypeTag, Scalar, PreconditionerRelaxation, \
|
||||
"The relaxation factor of the " \
|
||||
"preconditioner"); \
|
||||
Parameters::registerParam<TypeTag, Properties::PreconditionerRelaxation> \
|
||||
("The relaxation factor of the preconditioner"); \
|
||||
} \
|
||||
\
|
||||
void prepare(OverlappingMatrix& matrix) \
|
||||
@@ -164,8 +162,8 @@ public:
|
||||
|
||||
static void registerParameters()
|
||||
{
|
||||
EWOMS_REGISTER_PARAM(TypeTag, Scalar, PreconditionerRelaxation,
|
||||
"The relaxation factor of the preconditioner");
|
||||
Parameters::registerParam<TypeTag, Properties::PreconditionerRelaxation>
|
||||
("The relaxation factor of the preconditioner");
|
||||
}
|
||||
|
||||
void prepare(OverlappingMatrix& matrix)
|
||||
|
||||
@@ -124,8 +124,8 @@ public:
|
||||
|
||||
static void registerParameters()
|
||||
{
|
||||
EWOMS_REGISTER_PARAM(TypeTag, int, GMResRestart,
|
||||
"Number of iterations after which the GMRES linear solver is restarted");
|
||||
Parameters::registerParam<TypeTag, Properties::GMResRestart>
|
||||
("Number of iterations after which the GMRES linear solver is restarted");
|
||||
}
|
||||
|
||||
template <class LinearOperator, class ScalarProduct, class Preconditioner>
|
||||
|
||||
@@ -150,12 +150,12 @@ public:
|
||||
{
|
||||
ParentType::registerParameters();
|
||||
|
||||
EWOMS_REGISTER_PARAM(TypeTag, Scalar, LinearSolverMaxError,
|
||||
"The maximum residual error which the linear solver tolerates"
|
||||
" without giving up");
|
||||
EWOMS_REGISTER_PARAM(TypeTag, int, AmgCoarsenTarget,
|
||||
"The coarsening target for the agglomerations of "
|
||||
"the AMG preconditioner");
|
||||
Parameters::registerParam<TypeTag, Properties::LinearSolverMaxError>
|
||||
("The maximum residual error which the linear solver tolerates "
|
||||
"without giving up");
|
||||
Parameters::registerParam<TypeTag, Properties::AmgCoarsenTarget>
|
||||
("The coarsening target for the agglomerations of "
|
||||
"the AMG preconditioner");
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
@@ -152,16 +152,16 @@ public:
|
||||
*/
|
||||
static void registerParameters()
|
||||
{
|
||||
EWOMS_REGISTER_PARAM(TypeTag, Scalar, LinearSolverTolerance,
|
||||
"The maximum allowed error between of the linear solver");
|
||||
EWOMS_REGISTER_PARAM(TypeTag, Scalar, LinearSolverAbsTolerance,
|
||||
"The maximum accepted error of the norm of the residual");
|
||||
EWOMS_REGISTER_PARAM(TypeTag, unsigned, LinearSolverOverlapSize,
|
||||
"The size of the algebraic overlap for the linear solver");
|
||||
EWOMS_REGISTER_PARAM(TypeTag, int, LinearSolverMaxIterations,
|
||||
"The maximum number of iterations of the linear solver");
|
||||
EWOMS_REGISTER_PARAM(TypeTag, int, LinearSolverVerbosity,
|
||||
"The verbosity level of the linear solver");
|
||||
Parameters::registerParam<TypeTag, Properties::LinearSolverTolerance>
|
||||
("The maximum allowed error between of the linear solver");
|
||||
Parameters::registerParam<TypeTag, Properties::LinearSolverAbsTolerance>
|
||||
("The maximum accepted error of the norm of the residual");
|
||||
Parameters::registerParam<TypeTag, Properties::LinearSolverOverlapSize>
|
||||
("The size of the algebraic overlap for the linear solver");
|
||||
Parameters::registerParam<TypeTag, Properties::LinearSolverMaxIterations>
|
||||
("The maximum number of iterations of the linear solver");
|
||||
Parameters::registerParam<TypeTag, Properties::LinearSolverVerbosity>
|
||||
("The verbosity level of the linear solver");
|
||||
|
||||
PreconditionerWrapper::registerParameters();
|
||||
}
|
||||
|
||||
@@ -121,9 +121,9 @@ public:
|
||||
{
|
||||
ParentType::registerParameters();
|
||||
|
||||
EWOMS_REGISTER_PARAM(TypeTag, Scalar, LinearSolverMaxError,
|
||||
"The maximum residual error which the linear solver tolerates"
|
||||
" without giving up");
|
||||
Parameters::registerParam<TypeTag, Properties::LinearSolverMaxError>
|
||||
("The maximum residual error which the linear solver tolerates"
|
||||
" without giving up");
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user