mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changed: InitialTimeStepSize parameter moved to Opm::Parameters namespace
This commit is contained in:
parent
1f967940f1
commit
b4c6a1a240
@ -144,7 +144,7 @@ namespace Opm {
|
||||
Parameters::hideParam<TypeTag, Parameters::EndTime>();
|
||||
|
||||
// time stepping is not done by the eWoms code in flow
|
||||
Parameters::hideParam<TypeTag, Properties::InitialTimeStepSize>();
|
||||
Parameters::hideParam<TypeTag, Parameters::InitialTimeStepSize>();
|
||||
Parameters::hideParam<TypeTag, Parameters::MaxTimeStepDivisions>();
|
||||
Parameters::hideParam<TypeTag, Parameters::MaxTimeStepSize>();
|
||||
Parameters::hideParam<TypeTag, Parameters::MinTimeStepSize>();
|
||||
|
@ -316,7 +316,7 @@ public:
|
||||
enableEclOutput_ = Parameters::get<TypeTag, Properties::EnableEclOutput>();
|
||||
|
||||
this->enableTuning_ = Parameters::get<TypeTag, Properties::EnableTuning>();
|
||||
this->initialTimeStepSize_ = Parameters::get<TypeTag, Properties::InitialTimeStepSize>();
|
||||
this->initialTimeStepSize_ = Parameters::get<TypeTag, Parameters::InitialTimeStepSize>();
|
||||
this->maxTimeStepAfterWellEvent_ = Parameters::get<TypeTag, Properties::TimeStepAfterEventInDays>() * 24 * 60 * 60;
|
||||
|
||||
// The value N for this parameter is defined in the following order of presedence:
|
||||
|
@ -268,17 +268,6 @@ struct EnableApiTracking<TypeTag, TTag::FlowBaseProblem> {
|
||||
static constexpr bool value = false;
|
||||
};
|
||||
|
||||
// The default for the initial time step size of the simulation [s].
|
||||
//
|
||||
// The chosen value means that the size of the first time step is the
|
||||
// one of the initial episode (if the length of the initial episode is
|
||||
// not millions of trillions of years, that is...)
|
||||
template<class TypeTag>
|
||||
struct InitialTimeStepSize<TypeTag, TTag::FlowBaseProblem> {
|
||||
using type = GetPropType<TypeTag, Scalar>;
|
||||
static constexpr type value = 3600*24;
|
||||
};
|
||||
|
||||
// ... but enable the ECL output by default
|
||||
template<class TypeTag>
|
||||
struct EnableEclOutput<TypeTag,TTag::FlowBaseProblem> {
|
||||
@ -510,6 +499,18 @@ struct EndTime<TypeTag, Properties::TTag::FlowBaseProblem>
|
||||
static constexpr type value = 1e100;
|
||||
};
|
||||
|
||||
// The default for the initial time step size of the simulation [s].
|
||||
//
|
||||
// The chosen value means that the size of the first time step is the
|
||||
// one of the initial episode (if the length of the initial episode is
|
||||
// not millions of trillions of years, that is...)
|
||||
template<class TypeTag>
|
||||
struct InitialTimeStepSize<TypeTag, Properties::TTag::FlowBaseProblem>
|
||||
{
|
||||
using type = GetPropType<TypeTag, Properties::Scalar>;
|
||||
static constexpr type value = 3600*24;
|
||||
};
|
||||
|
||||
// the default for the allowed volumetric error for oil per second
|
||||
template<class TypeTag>
|
||||
struct NewtonTolerance<TypeTag, Properties::TTag::FlowBaseProblem>
|
||||
|
Loading…
Reference in New Issue
Block a user