diff --git a/dumux/decoupled/common/impetproblem.hh b/dumux/decoupled/common/impetproblem.hh index ae0948c9921fb6934899f39456b59cdd71af0bf5..9409f483cd6610438d0bd5a59be83f29393d749c 100644 --- a/dumux/decoupled/common/impetproblem.hh +++ b/dumux/decoupled/common/impetproblem.hh @@ -516,7 +516,7 @@ public: { return timeManager().timeStepIndex() > 0 && - (timeManager().timeStepIndex() % int(5*outputInterval_) == 0); + (timeManager().timeStepIndex() % int(100*outputInterval_) == 0); } /*! @@ -525,7 +525,7 @@ public: * The default is 1 -> Output every time step */ void setOutputInterval(int interval) - { outputInterval_ = interval; } + { outputInterval_ = std::max(interval, 1); } /*! * \brief Returns true if the current solution should be written to @@ -628,6 +628,13 @@ public: << "adaptivity is disabled in property system \n;" << adaptiveGrid; } + void postAdapt() + { + if (!adaptiveGrid) + Dune::dgrave << "adaptivity functionality was called despite " + << "adaptivity is disabled in property system \n;" << adaptiveGrid; + } + /*! * \brief Returns the mapper for vertices to indices. */