From c19e047bec8b6a85dbf7b5b71b4fcf618f6c1d4f Mon Sep 17 00:00:00 2001 From: Andreas Lauser <and@poware.org> Date: Thu, 24 Mar 2011 11:13:56 +0000 Subject: [PATCH] box models: add a few additional valgrind checks, allow problems to cap time step sizes more easily to cap the time step size a problem can overload the maxTimeStepSize() method. git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@5461 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- dumux/boxmodels/common/boxproblem.hh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dumux/boxmodels/common/boxproblem.hh b/dumux/boxmodels/common/boxproblem.hh index d504756a9c..d61a5aff7c 100644 --- a/dumux/boxmodels/common/boxproblem.hh +++ b/dumux/boxmodels/common/boxproblem.hh @@ -142,6 +142,14 @@ public: model().init(asImp_()); } + /*! + * \brief Returns the maximum allowed time step size [s] + * + * By default this the time step size is unrestricted. + */ + Scalar maxTimeStepSize() const + { return std::numeric_limits<Scalar>::infinity(); } + /*! * \brief Specifies which kind of boundary condition should be * used for which equation on a given boundary segment. -- GitLab