mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-14 16:33:25 -06:00
EndTime moved to TypeTag-free parameter system
This commit is contained in:
parent
91a0fd79a9
commit
3e8929b04f
@ -126,7 +126,7 @@ namespace Opm {
|
||||
Parameters::hideParam<TypeTag, Parameters::EnableThermodynamicHints>();
|
||||
|
||||
// in flow only the deck file determines the end time of the simulation
|
||||
Parameters::hideParam<TypeTag, Parameters::EndTime>();
|
||||
Parameters::Hide<Parameters::EndTime<Scalar>>();
|
||||
|
||||
// time stepping is not done by the eWoms code in flow
|
||||
Parameters::hideParam<TypeTag, Parameters::InitialTimeStepSize>();
|
||||
|
@ -247,6 +247,11 @@ public:
|
||||
Parameters::registerParam<TypeTag, Parameters::ExplicitRockCompaction>
|
||||
("Use pressure from end of the last time step when evaluating rock compaction");
|
||||
Parameters::hideParam<TypeTag, Parameters::ExplicitRockCompaction>(); // Users will typically not need to modify this parameter..
|
||||
|
||||
// By default, stop it after the universe will probably have stopped
|
||||
// to exist. (the ECL problem will finish the simulation explicitly
|
||||
// after it simulated the last episode specified in the deck.)
|
||||
Parameters::SetDefault<Parameters::EndTime<Scalar>>(1e100);
|
||||
}
|
||||
|
||||
|
||||
|
@ -409,18 +409,6 @@ template<class TypeTag>
|
||||
struct EnableWriteAllSolutions<TypeTag, Properties::TTag::FlowBaseProblem>
|
||||
{ static constexpr bool value = false; };
|
||||
|
||||
// The default for the end time of the simulation [s]
|
||||
//
|
||||
// By default, stop it after the universe will probably have stopped
|
||||
// to exist. (the ECL problem will finish the simulation explicitly
|
||||
// after it simulated the last episode specified in the deck.)
|
||||
template<class TypeTag>
|
||||
struct EndTime<TypeTag, Properties::TTag::FlowBaseProblem>
|
||||
{
|
||||
using type = GetPropType<TypeTag, Properties::Scalar>;
|
||||
static constexpr type value = 1e100;
|
||||
};
|
||||
|
||||
// By default, use implicit pressure in rock compaction
|
||||
template<class TypeTag>
|
||||
struct ExplicitRockCompaction<TypeTag, Properties::TTag::FlowBaseProblem>
|
||||
|
Loading…
Reference in New Issue
Block a user