From e05fac1f7c1066aec1cd49372753083fd4147889 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Tue, 7 May 2019 11:55:20 +0200 Subject: [PATCH] pass the correct value for the isSubstep parameter of problem_->writeOutput() currently, the practical implications of this are very limited... --- ewoms/common/simulator.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ewoms/common/simulator.hh b/ewoms/common/simulator.hh index 649111fce9..9bd3d9db3e 100644 --- a/ewoms/common/simulator.hh +++ b/ewoms/common/simulator.hh @@ -636,7 +636,7 @@ public: // write initial condition if (problem_->shouldWriteOutput()) - EWOMS_CATCH_PARALLEL_EXCEPTIONS_FATAL(problem_->writeOutput(/*isSubstep=*/false)); + EWOMS_CATCH_PARALLEL_EXCEPTIONS_FATAL(problem_->writeOutput(/*isSubstep=*/!episodeWillBeOver())); timeStepSize_ = oldTimeStepSize; timeStepIdx_ = oldTimeStepIdx;