From 10d1d5c9a7c812803ac05da0346f2d9682fda36f Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Tue, 19 Feb 2019 10:22:34 +0100 Subject: [PATCH] introduce an "experimental mode" this is a compile time switch with the intention to be able to more easily turn experimental features that are not yet considered to be production quality on and off. DUNE has a similar mechanism (i.e., the `DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS` macro), but it relies on the preprocessor. For now, the property does not have any effect. --- ebos/ebos.cc | 5 +++++ ebos/eclproblem.hh | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ebos/ebos.cc b/ebos/ebos.cc index 518b1d957..b225f138e 100644 --- a/ebos/ebos.cc +++ b/ebos/ebos.cc @@ -36,6 +36,11 @@ BEGIN_PROPERTIES NEW_TYPE_TAG(EclProblem, INHERITS_FROM(BlackOilModel, EclBaseProblem)); +// Enable experimental features for ebos: ebos is the research simulator of the OPM +// project. If you're looking for a more stable "production quality" simulator, consider +// using `flow` +SET_BOOL_PROP(EclProblem, EnableExperiments, true); + END_PROPERTIES int main(int argc, char **argv) diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index 16792b0dd..bcc373bfc 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -325,6 +325,10 @@ SET_BOOL_PROP(EclBaseProblem, EnableThermalFluxBoundaries, false); SET_BOOL_PROP(EclBaseProblem, EnableTracerModel, false); +// By default, simulators derived from the EclBaseProblem are production simulators, +// i.e., experimental features must be explicitly enabled at compile time +SET_BOOL_PROP(EclBaseProblem, EnableExperiments, false); + END_PROPERTIES namespace Ewoms {