From 427284d2e2cbb405a786d424598f1f198ac4aefa Mon Sep 17 00:00:00 2001 From: Markus Wolff <markus.wolff@twt-gmbh.de> Date: Thu, 3 Nov 2011 13:10:37 +0000 Subject: [PATCH] added postAdapt() function for grid adaptive schemes, removed some bugs in output helper-functions git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@6839 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- dumux/decoupled/common/impetproblem.hh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dumux/decoupled/common/impetproblem.hh b/dumux/decoupled/common/impetproblem.hh index ae0948c992..9409f483cd 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. */ -- GitLab