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.
This commit is contained in:
Andreas Lauser 2010-12-02 09:43:52 +00:00 committed by Andreas Lauser
parent 9c0c9b9fb0
commit 15116fb9f8

View File

@ -52,8 +52,7 @@ NEW_TYPE_TAG(TutorialProblemDecoupled, INHERITS_FROM(DecoupledTwoP)); /*@\label{
// Set the problem property // Set the problem property
SET_PROP(TutorialProblemDecoupled, Problem) /*@\label{tutorial-decoupled:set-problem}@*/ SET_PROP(TutorialProblemDecoupled, Problem) /*@\label{tutorial-decoupled:set-problem}@*/
{ {
public: typedef Dumux::TutorialProblemDecoupled<TypeTag> type;
typedef Dumux::TutorialProblemDecoupled<TTAG(TutorialProblemDecoupled)> type;
}; };
// Set the grid type // Set the grid type
@ -128,7 +127,7 @@ SET_BOOL_PROP(TutorialProblemDecoupled, EnableGravity, false); /*@\label{tutoria
/*! \ingroup DecoupledProblems /*! \ingroup DecoupledProblems
* @brief Problem class for the decoupled tutorial * @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}@*/ class TutorialProblemDecoupled: public IMPESProblem2P<TypeTag, TutorialProblemDecoupled<TypeTag> > /*@\label{tutorial-decoupled:def-problem}@*/
{ {
typedef TutorialProblemDecoupled<TypeTag> ThisType; typedef TutorialProblemDecoupled<TypeTag> ThisType;