<div dir="ltr"><div><div><br></div>Hello,<br><br></div>  I can't figure this out. I'm trying to switch from pWsN to pNsW in the example 1 tutorial problem with the line:<br><br><div><div><div><i>SET_INT_PROP(TutorialProblemImplicit, Formulation, TwoPCommonIndices::pNsW);</i><br><br></div><div><div style="margin-left:40px">Indices::pnIdx and Indices::sWIdx are now apparently recognized by the compiler, but compilation terminates with the error: <br><br>In file included from /opt/dune/include/dumux/implicit/properties.hh:22:0,<br>                 from /opt/dune/include/dumux/porousmediumflow/implicit/velocityoutput.hh:27,<br>                 from /opt/dune/include/dumux/porousmediumflow/2p/implicit/model.hh:29,<br>                 from /home/edscott/src/lswf_test1/src/tutorialproblem_implicit.hh:28,<br>                 from /home/edscott/src/lswf_test1/src/lswf_test1.cc:25:<br>/home/edscott/src/lswf_test1/src/tutorialproblem_implicit.hh:53:52: error: 'template<class TypeTag> struct Dumux::TwoPCommonIndices' used without template parameters<br> SET_INT_PROP(TutorialProblemImplicit, Formulation, TwoPCommonIndices::pNsW);<br>                                                    ^<br>/opt/dune/include/dumux/common/propertysystem.hh:276:38: note: in definition of macro 'SET_INT_PROP'<br>         static constexpr int value = __VA_ARGS__;               \<br>                                      ^<br>In file included from /opt/dune/include/dumux/porousmediumflow/2p/implicit/propertydefaults.hh:34:0,<br>                 from /opt/dune/include/dumux/porousmediumflow/2p/implicit/model.hh:201,<br>                 from /home/edscott/src/lswf_test1/src/tutorialproblem_implicit.hh:28,<br>                 from /home/edscott/src/lswf_test1/src/lswf_test1.cc:25:<br>/opt/dune/include/dumux/porousmediumflow/2p/implicit/volumevariables.hh: In instantiation of 'class Dumux::TwoPVolumeVariables<Dumux::Properties::TTag::TutorialProblemImplicit>':<br>/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/bits/stl_vector.h:161:9:   required from 'std::_Vector_base<_Tp, _Alloc>::~_Vector_base() [with _Tp = Dumux::TwoPVolumeVariables<Dumux::Properties::TTag::TutorialProblemImplicit>; _Alloc = std::allocator<Dumux::TwoPVolumeVariables<Dumux::Properties::TTag::TutorialProblemImplicit> >]'<br>/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.4/include/g++-v4/bits/stl_vector.h:425:33:   required from 'std::vector<_Tp, _Alloc>::~vector() [with _Tp = Dumux::TwoPVolumeVariables<Dumux::Properties::TTag::TutorialProblemImplicit>; _Alloc = std::allocator<Dumux::TwoPVolumeVariables<Dumux::Properties::TTag::TutorialProblemImplicit> >]'<br>/opt/dune/include/dumux/implicit/model.hh:43:7:   required from 'int Dumux::start_(int, char**, void (*)(const char*, const string&)) [with TypeTag = Dumux::Properties::TTag::TutorialProblemImplicit; std::string = std::basic_string<char>]'<br>/opt/dune/include/dumux/common/start.hh:510:49:   required from 'int Dumux::start(int, char**, void (*)(const char*, const string&)) [with TypeTag = Dumux::Properties::TTag::TutorialProblemImplicit; std::string = std::basic_string<char>]'<br>/home/edscott/src/lswf_test1/src/lswf_test1.cc:48:51:   required from here<br>/opt/dune/include/dumux/porousmediumflow/2p/implicit/volumevariables.hh:56:10: error: enumerator value for 'formulation' is not an integer constant<br>     enum {<br>          ^<br>src/CMakeFiles/lswf_test1.dir/build.make:62: recipe for target 'src/CMakeFiles/lswf_test1.dir/lswf_test1.cc.o' failed<br>make[2]: *** [src/CMakeFiles/lswf_test1.dir/lswf_test1.cc.o] Error 1<br>CMakeFiles/Makefile2:1333: recipe for target 'src/CMakeFiles/lswf_test1.dir/all' failed<br>make[1]: *** [src/CMakeFiles/lswf_test1.dir/all] Error 2<br>Makefile:160: recipe for target 'all' failed<br>make: *** [all] Error 2<br></div><br></div><div>Would someone on the list please be so kind as to point out what I am missing here?<br><br></div><div>kind regards to all,<br><br clear="all"></div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div><div>------------------------------------------------------------------------------------<br></div>Dr. Edscott Wilson Garcia<br></div>Reservoir Engineering<br></div>Mexican Petroleum Institute<br></div></div>
</div></div></div></div>