From d7e74e7c4e450ffe979bfcd9951078dbc201210b Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Mon, 4 Mar 2019 13:59:50 +0100 Subject: [PATCH] fix review comment by [at]totto82 --- ebos/eclproblem.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ebos/eclproblem.hh b/ebos/eclproblem.hh index be896e4ad..dd237c19b 100644 --- a/ebos/eclproblem.hh +++ b/ebos/eclproblem.hh @@ -370,6 +370,7 @@ class EclProblem : public GET_PROP_TYPE(TypeTag, BaseProblem) enum { numEq = GET_PROP_VALUE(TypeTag, NumEq) }; enum { numPhases = FluidSystem::numPhases }; enum { numComponents = FluidSystem::numComponents }; + enum { enableExperiments = GET_PROP_VALUE(TypeTag, EnableExperiments) }; enum { enableSolvent = GET_PROP_VALUE(TypeTag, EnableSolvent) }; enum { enablePolymer = GET_PROP_VALUE(TypeTag, EnablePolymer) }; enum { enablePolymerMolarWeight = GET_PROP_VALUE(TypeTag, EnablePolymerMW) }; @@ -708,7 +709,7 @@ public: // eclState and the deck if they need to be changed. int nextEpisodeIdx = simulator.episodeIndex(); - if (this->gridView().comm().rank() == 0) { + if (enableExperiments && this->gridView().comm().rank() == 0) { boost::posix_time::ptime curDateTime = boost::posix_time::from_time_t(timeMap.getStartTime(nextEpisodeIdx+1)); std::cout << "Report step " << nextEpisodeIdx + 2