diff --git a/dumux/decoupled/common/onemodelproblem.hh b/dumux/decoupled/common/onemodelproblem.hh index 28343ba78063640ec51eeacb857863ec32250d56..104ba89ff33b72e776fa2867bb3e2213c4542884 100644 --- a/dumux/decoupled/common/onemodelproblem.hh +++ b/dumux/decoupled/common/onemodelproblem.hh @@ -238,8 +238,8 @@ public: bool shouldWriteRestartFile() const { return !restarted() && - timeManager().stepNum() > 0 && - (timeManager().stepNum() % 5 == 0); + timeManager().timeStepNum() > 0 && + (timeManager().timeStepNum() % 5 == 0); } /*!