mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fix review comment by [at]totto82
This commit is contained in:
parent
c37bc1cf38
commit
d7e74e7c4e
@ -370,6 +370,7 @@ class EclProblem : public GET_PROP_TYPE(TypeTag, BaseProblem)
|
|||||||
enum { numEq = GET_PROP_VALUE(TypeTag, NumEq) };
|
enum { numEq = GET_PROP_VALUE(TypeTag, NumEq) };
|
||||||
enum { numPhases = FluidSystem::numPhases };
|
enum { numPhases = FluidSystem::numPhases };
|
||||||
enum { numComponents = FluidSystem::numComponents };
|
enum { numComponents = FluidSystem::numComponents };
|
||||||
|
enum { enableExperiments = GET_PROP_VALUE(TypeTag, EnableExperiments) };
|
||||||
enum { enableSolvent = GET_PROP_VALUE(TypeTag, EnableSolvent) };
|
enum { enableSolvent = GET_PROP_VALUE(TypeTag, EnableSolvent) };
|
||||||
enum { enablePolymer = GET_PROP_VALUE(TypeTag, EnablePolymer) };
|
enum { enablePolymer = GET_PROP_VALUE(TypeTag, EnablePolymer) };
|
||||||
enum { enablePolymerMolarWeight = GET_PROP_VALUE(TypeTag, EnablePolymerMW) };
|
enum { enablePolymerMolarWeight = GET_PROP_VALUE(TypeTag, EnablePolymerMW) };
|
||||||
@ -708,7 +709,7 @@ public:
|
|||||||
// eclState and the deck if they need to be changed.
|
// eclState and the deck if they need to be changed.
|
||||||
int nextEpisodeIdx = simulator.episodeIndex();
|
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::ptime curDateTime =
|
||||||
boost::posix_time::from_time_t(timeMap.getStartTime(nextEpisodeIdx+1));
|
boost::posix_time::from_time_t(timeMap.getStartTime(nextEpisodeIdx+1));
|
||||||
std::cout << "Report step " << nextEpisodeIdx + 2
|
std::cout << "Report step " << nextEpisodeIdx + 2
|
||||||
|
Loading…
Reference in New Issue
Block a user