mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-25 08:41:00 -06:00
changed: EnableGravity parameter moved to Opm::Parameters namespace
This commit is contained in:
parent
5d19739c8c
commit
f251370a52
@ -128,7 +128,7 @@ namespace Opm {
|
||||
registerAllParameters_<TypeTag>(/*finalizeRegistration=*/false);
|
||||
|
||||
// hide the parameters unused by flow. TODO: this is a pain to maintain
|
||||
Parameters::hideParam<TypeTag, Properties::EnableGravity>();
|
||||
Parameters::hideParam<TypeTag, Parameters::EnableGravity>();
|
||||
Parameters::hideParam<TypeTag, Parameters::EnableGridAdaptation>();
|
||||
|
||||
// this parameter is actually used in eWoms, but the flow well model
|
||||
|
@ -392,7 +392,7 @@ public:
|
||||
// disables gravity, else the standard value of the gravity constant at sea level
|
||||
// on earth is used
|
||||
this->gravity_ = 0.0;
|
||||
if (Parameters::get<TypeTag, Properties::EnableGravity>())
|
||||
if (Parameters::get<TypeTag, Parameters::EnableGravity>())
|
||||
this->gravity_[dim - 1] = 9.80665;
|
||||
if (!eclState.getInitConfig().hasGravity())
|
||||
this->gravity_[dim - 1] = 0.0;
|
||||
|
@ -238,12 +238,6 @@ struct AquiferModel<TypeTag, TTag::FlowBaseProblem> {
|
||||
using type = BaseAquiferModel<TypeTag>;
|
||||
};
|
||||
|
||||
// Enable gravity
|
||||
template<class TypeTag>
|
||||
struct EnableGravity<TypeTag, TTag::FlowBaseProblem> {
|
||||
static constexpr bool value = true;
|
||||
};
|
||||
|
||||
// Enable diffusion
|
||||
template<class TypeTag>
|
||||
struct EnableDiffusion<TypeTag, TTag::FlowBaseProblem> {
|
||||
@ -471,10 +465,10 @@ struct ExplicitRockCompaction<TypeTag, TTag::FlowBaseProblem> {
|
||||
|
||||
namespace Opm::Parameters {
|
||||
|
||||
// Disable the VTK output by default for this problem ...
|
||||
// Enable gravity
|
||||
template<class TypeTag>
|
||||
struct EnableVtkOutput<TypeTag, Properties::TTag::FlowBaseProblem>
|
||||
{ static constexpr bool value = false; };
|
||||
struct EnableGravity<TypeTag, Properties::TTag::FlowBaseProblem>
|
||||
{ static constexpr bool value = true; };
|
||||
|
||||
// the cache for intensive quantities can be used for ECL problems and also yields a
|
||||
// decent speedup...
|
||||
@ -487,6 +481,11 @@ template<class TypeTag>
|
||||
struct EnableStorageCache<TypeTag, Properties::TTag::FlowBaseProblem>
|
||||
{ static constexpr bool value = true; };
|
||||
|
||||
// Disable the VTK output by default for this problem ...
|
||||
template<class TypeTag>
|
||||
struct EnableVtkOutput<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
|
||||
|
Loading…
Reference in New Issue
Block a user