From eb2102d2b91813cb5547493d33432fc357b597b7 Mon Sep 17 00:00:00 2001 From: Andreas Lauser <and@poware.org> Date: Thu, 2 Dec 2010 09:43:52 +0000 Subject: [PATCH] decoupled tutorial: streamline the code a bit we do not need to set any default arguments for the type tag in the problem definition. the type tag which is actually used is chosen in the main function. git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@4805 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- tutorial/tutorialproblem_decoupled.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tutorial/tutorialproblem_decoupled.hh b/tutorial/tutorialproblem_decoupled.hh index 71988b4758..a913708264 100644 --- a/tutorial/tutorialproblem_decoupled.hh +++ b/tutorial/tutorialproblem_decoupled.hh @@ -52,8 +52,7 @@ NEW_TYPE_TAG(TutorialProblemDecoupled, INHERITS_FROM(DecoupledTwoP)); /*@\label{ // Set the problem property SET_PROP(TutorialProblemDecoupled, Problem) /*@\label{tutorial-decoupled:set-problem}@*/ { -public: - typedef Dumux::TutorialProblemDecoupled<TTAG(TutorialProblemDecoupled)> type; + typedef Dumux::TutorialProblemDecoupled<TypeTag> type; }; // Set the grid type @@ -128,7 +127,7 @@ SET_BOOL_PROP(TutorialProblemDecoupled, EnableGravity, false); /*@\label{tutoria /*! \ingroup DecoupledProblems * @brief Problem class for the decoupled tutorial */ -template<class TypeTag = TTAG(TutorialProblemDecoupled)> +template<class TypeTag> class TutorialProblemDecoupled: public IMPESProblem2P<TypeTag, TutorialProblemDecoupled<TypeTag> > /*@\label{tutorial-decoupled:def-problem}@*/ { typedef TutorialProblemDecoupled<TypeTag> ThisType; -- GitLab