mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-24 10:10:18 -06:00
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:
parent
9c0c9b9fb0
commit
15116fb9f8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user