ECL problem: write the initial solution again

this regressed after time step index of the initial solution was
changed from 0 (actually, this was also 0 for the first time step...)
to -1 in b30af664.
This commit is contained in:
Andreas Lauser 2014-08-04 17:07:49 +02:00
parent 6d6640fc9d
commit 8c457f3f78

View File

@ -312,7 +312,7 @@ public:
*/
bool shouldWriteOutput()
{
if (this->simulator().timeStepIndex() == 0)
if (this->simulator().timeStepIndex() < 0)
// always write the initial solution
return true;