mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
EnableIntensiveQuantityCache moved to TypeTag-free parameter system
This commit is contained in:
parent
43f9a46b51
commit
77f0cda5d4
@ -120,7 +120,7 @@ namespace Opm {
|
|||||||
// this parameter is actually used in eWoms, but the flow well model
|
// this parameter is actually used in eWoms, but the flow well model
|
||||||
// hard-codes the assumption that the intensive quantities cache is enabled,
|
// hard-codes the assumption that the intensive quantities cache is enabled,
|
||||||
// so flow crashes. Let's hide the parameter for that reason.
|
// so flow crashes. Let's hide the parameter for that reason.
|
||||||
Parameters::hideParam<TypeTag, Parameters::EnableIntensiveQuantityCache>();
|
Parameters::Hide<Parameters::EnableIntensiveQuantityCache>();
|
||||||
|
|
||||||
// thermodynamic hints are not implemented/required by the eWoms blackoil
|
// thermodynamic hints are not implemented/required by the eWoms blackoil
|
||||||
// model
|
// model
|
||||||
|
@ -258,6 +258,9 @@ public:
|
|||||||
Parameters::SetDefault<Parameters::InitialTimeStepSize<Scalar>>(3600*24);
|
Parameters::SetDefault<Parameters::InitialTimeStepSize<Scalar>>(3600*24);
|
||||||
// Disable the VTK output by default for this problem ...
|
// Disable the VTK output by default for this problem ...
|
||||||
Parameters::SetDefault<Parameters::EnableVtkOutput>(false);
|
Parameters::SetDefault<Parameters::EnableVtkOutput>(false);
|
||||||
|
// the cache for intensive quantities can be used for ECL problems and also yields a
|
||||||
|
// decent speedup...
|
||||||
|
Parameters::SetDefault<Parameters::EnableIntensiveQuantityCache>(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -388,12 +388,6 @@ template<class TypeTag>
|
|||||||
struct EnableGravity<TypeTag, Properties::TTag::FlowBaseProblem>
|
struct EnableGravity<TypeTag, Properties::TTag::FlowBaseProblem>
|
||||||
{ static constexpr bool value = true; };
|
{ static constexpr bool value = true; };
|
||||||
|
|
||||||
// the cache for intensive quantities can be used for ECL problems and also yields a
|
|
||||||
// decent speedup...
|
|
||||||
template<class TypeTag>
|
|
||||||
struct EnableIntensiveQuantityCache<TypeTag, Properties::TTag::FlowBaseProblem>
|
|
||||||
{ static constexpr bool value = true; };
|
|
||||||
|
|
||||||
// the cache for the storage term can also be used and also yields a decent speedup
|
// the cache for the storage term can also be used and also yields a decent speedup
|
||||||
template<class TypeTag>
|
template<class TypeTag>
|
||||||
struct EnableStorageCache<TypeTag, Properties::TTag::FlowBaseProblem>
|
struct EnableStorageCache<TypeTag, Properties::TTag::FlowBaseProblem>
|
||||||
|
Loading…
Reference in New Issue
Block a user