diff --git a/examples/tutorialspatialparameters_coupled.hh b/examples/tutorialspatialparameters_coupled.hh index 2f9ce3e75..b16d552f2 100644 --- a/examples/tutorialspatialparameters_coupled.hh +++ b/examples/tutorialspatialparameters_coupled.hh @@ -34,6 +34,7 @@ // include material laws #include /*@\label{tutorial-coupled:rawLawInclude}@*/ #include +#include namespace Dumux { //forward declaration @@ -57,9 +58,15 @@ private: typedef typename GET_PROP_TYPE(TypeTag, Scalar) Scalar; // select material law to be used typedef RegularizedBrooksCorey RawMaterialLaw; /*@\label{tutorial-coupled:rawlaw}@*/ -public: // adapter for absolute law - typedef EffToAbsLaw type; /*@\label{tutorial-coupled:eff2abs}@*/ + typedef EffToAbsLaw TwoPMaterialLaw; /*@\label{tutorial-coupled:eff2abs}@*/ + + typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem; + enum { wPhaseIdx = FluidSystem::wPhaseIdx }; + +public: + typedef TwoPAdapter type; + }; }