From 591334ac82ba8a0af696cf1bb6f2b7554966f262 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Fri, 18 Nov 2011 16:30:28 +0100 Subject: [PATCH] box models: introduce BaseProblem property that's the base class from which the actual problems are derived from --- examples/tutorialproblem_coupled.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/tutorialproblem_coupled.hh b/examples/tutorialproblem_coupled.hh index 4756057d7..c9f611cac 100644 --- a/examples/tutorialproblem_coupled.hh +++ b/examples/tutorialproblem_coupled.hh @@ -93,9 +93,9 @@ SET_INT_PROP(TutorialProblemCoupled, GridCellsZ, 0); * \brief Tutorial problem for a fully coupled twophase box model. */ template -class TutorialProblemCoupled : public TwoPProblem /*@\label{tutorial-coupled:def-problem}@*/ +class TutorialProblemCoupled : public GET_PROP_TYPE(TypeTag, BaseProblem) /*@\label{tutorial-coupled:def-problem}@*/ { - typedef TwoPProblem ParentType; + typedef typename GET_PROP_TYPE(TypeTag, BaseProblem) ParentType; typedef typename GET_PROP_TYPE(TypeTag, Scalar) Scalar; typedef typename GET_PROP_TYPE(TypeTag, GridView) GridView;