mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Always use the reduction of the maximum of the weighted residual as convergence criterion
This should make things a much more robust, partially because now the linear and the non-linear solvers use the same convergence criterion. Also, this patch includes some collateral indentation improvements.
This commit is contained in:
@@ -55,7 +55,7 @@ SET_TYPE_PROP(
|
||||
#if HAVE_QUAD
|
||||
SET_TYPE_PROP(Co2InjectionFlashEcfvProblem, Scalar, quad);
|
||||
#else
|
||||
SET_SCALAR_PROP(Co2InjectionFlashEcfvProblem, NewtonRelativeTolerance, 1e-5);
|
||||
SET_SCALAR_PROP(Co2InjectionFlashEcfvProblem, NewtonTolerance, 1e-5);
|
||||
#endif
|
||||
} // namespace Properties
|
||||
} // namespace Opm
|
||||
|
||||
@@ -54,7 +54,7 @@ SET_TYPE_PROP(
|
||||
#if HAVE_QUAD
|
||||
SET_TYPE_PROP(Co2InjectionFlashNiEcfvProblem, Scalar, quad);
|
||||
#else
|
||||
SET_SCALAR_PROP(Co2InjectionFlashNiEcfvProblem, NewtonRelativeTolerance, 1e-5);
|
||||
SET_SCALAR_PROP(Co2InjectionFlashNiEcfvProblem, NewtonTolerance, 1e-5);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ SET_TYPE_PROP(
|
||||
#if HAVE_QUAD
|
||||
SET_TYPE_PROP(Co2InjectionFlashNiVcfvProblem, Scalar, quad);
|
||||
#else
|
||||
SET_SCALAR_PROP(Co2InjectionFlashNiVcfvProblem, NewtonRelativeTolerance, 1e-5);
|
||||
SET_SCALAR_PROP(Co2InjectionFlashNiVcfvProblem, NewtonTolerance, 1e-5);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ SET_TYPE_PROP(
|
||||
#if HAVE_QUAD
|
||||
SET_TYPE_PROP(Co2InjectionFlashVcfvProblem, Scalar, quad);
|
||||
#else
|
||||
SET_SCALAR_PROP(Co2InjectionFlashVcfvProblem, NewtonRelativeTolerance, 1e-5);
|
||||
SET_SCALAR_PROP(Co2InjectionFlashVcfvProblem, NewtonTolerance, 1e-5);
|
||||
#endif
|
||||
} // namespace Properties
|
||||
} // namespace Opm
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
/*!
|
||||
* \file
|
||||
*
|
||||
* \brief Test for the isothermal primary variable switching VCVF
|
||||
*discretization.
|
||||
* \brief Test for the isothermal primary variable switching model
|
||||
* using the ECVF discretization.
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
* \file
|
||||
*
|
||||
* \brief Test for the non-isothermal primary variable switching VCVF
|
||||
*discretization.
|
||||
* discretization.
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
/*!
|
||||
* \file
|
||||
*
|
||||
* \brief Test for the non-isothermal primary variable switching VCVF
|
||||
*discretization.
|
||||
* \brief Test for the non-isothermal primary variable switching model
|
||||
* using the VCVF discretization.
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
/*!
|
||||
* \file
|
||||
*
|
||||
* \brief Test for the isothermal primary variable switching VCVF
|
||||
*discretization.
|
||||
* \brief Test for the isothermal primary variable switching model using the VCVF
|
||||
* discretization.
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
/*
|
||||
* \file
|
||||
*
|
||||
* \brief Test for the isothermal primary variable switching VCVF
|
||||
*discretization.
|
||||
* \brief Test for the isothermal primary variable switching model
|
||||
* using "obstacle" problem and the VCVF discretization.
|
||||
*/
|
||||
#include "config.h"
|
||||
|
||||
|
||||
@@ -239,16 +239,13 @@ public:
|
||||
{
|
||||
eps_ = 1e-6;
|
||||
|
||||
temperatureLow_
|
||||
= EWOMS_GET_PARAM(TypeTag, Scalar, FluidSystemTemperatureLow);
|
||||
temperatureHigh_
|
||||
= EWOMS_GET_PARAM(TypeTag, Scalar, FluidSystemTemperatureHigh);
|
||||
temperatureLow_ = EWOMS_GET_PARAM(TypeTag, Scalar, FluidSystemTemperatureLow);
|
||||
temperatureHigh_ = EWOMS_GET_PARAM(TypeTag, Scalar, FluidSystemTemperatureHigh);
|
||||
nTemperature_ = EWOMS_GET_PARAM(TypeTag, int, FluidSystemNumTemperature);
|
||||
|
||||
nPressure_ = EWOMS_GET_PARAM(TypeTag, int, FluidSystemNumPressure);
|
||||
pressureLow_ = EWOMS_GET_PARAM(TypeTag, Scalar, FluidSystemPressureLow);
|
||||
pressureHigh_
|
||||
= EWOMS_GET_PARAM(TypeTag, Scalar, FluidSystemPressureHigh);
|
||||
pressureHigh_ = EWOMS_GET_PARAM(TypeTag, Scalar, FluidSystemPressureHigh);
|
||||
|
||||
maxDepth_ = EWOMS_GET_PARAM(TypeTag, Scalar, MaxDepth);
|
||||
temperature_ = EWOMS_GET_PARAM(TypeTag, Scalar, Temperature);
|
||||
|
||||
@@ -68,8 +68,8 @@ SET_BOOL_PROP(InfiltrationBaseProblem, EnableGravity, true);
|
||||
// Write newton convergence?
|
||||
SET_BOOL_PROP(InfiltrationBaseProblem, NewtonWriteConvergence, false);
|
||||
|
||||
// Maximum tolerated relative error in the Newton method
|
||||
SET_SCALAR_PROP(InfiltrationBaseProblem, NewtonRelativeTolerance, 1e-8);
|
||||
// Maximum tolerated error in the Newton method
|
||||
SET_SCALAR_PROP(InfiltrationBaseProblem, NewtonTolerance, 1e-8);
|
||||
|
||||
// -1 backward differences, 0: central differences, +1: forward differences
|
||||
SET_INT_PROP(InfiltrationBaseProblem, NumericDifferenceMethod, 1);
|
||||
|
||||
@@ -70,6 +70,9 @@ SET_SCALAR_PROP(StokesNiTestProblem, EndTime, 3.0);
|
||||
// Default initial time step size [s]
|
||||
SET_SCALAR_PROP(StokesNiTestProblem, InitialTimeStepSize, 0.1);
|
||||
|
||||
// Default tolerance of the Newton-Raphson method
|
||||
SET_SCALAR_PROP(StokesNiTestProblem, NewtonTolerance, 1e-4);
|
||||
|
||||
// Default grid file to load
|
||||
SET_STRING_PROP(StokesNiTestProblem, GridFile, "grids/test_stokes2cni.dgf");
|
||||
} // namespace Properties
|
||||
|
||||
Reference in New Issue
Block a user