Skip to content
Snippets Groups Projects
Commit eb2102d2 authored by Andreas Lauser's avatar Andreas Lauser
Browse files

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
parent f7be4c40
No related branches found
No related tags found
No related merge requests found
...@@ -52,8 +52,7 @@ NEW_TYPE_TAG(TutorialProblemDecoupled, INHERITS_FROM(DecoupledTwoP)); /*@\label{ ...@@ -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 ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment