From 678a3c55d7d11424d3b21e243f0ee1abf134151f Mon Sep 17 00:00:00 2001 From: Markus Wolff <markus.wolff@twt-gmbh.de> Date: Wed, 2 Nov 2011 11:01:11 +0000 Subject: [PATCH] change in init() function - check return value of the shouldWriteOutput() function of the problem before the initial solution is written git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@6822 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- dumux/common/timemanager.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dumux/common/timemanager.hh b/dumux/common/timemanager.hh index ceaf5dec08..4a36def516 100644 --- a/dumux/common/timemanager.hh +++ b/dumux/common/timemanager.hh @@ -123,7 +123,8 @@ public: { // write initial condition (if problem is not restarted) time_ -= timeStepSize_; - problem_->writeOutput(); + if (problem_->shouldWriteOutput()) + problem_->writeOutput(); time_ += timeStepSize_; } -- GitLab