[Dune] problem switching from pWsN to pNsW

Edscott Wilson edscott.wilson.garcia at gmail.com
Wed Mar 15 23:46:45 CET 2017


Hello,

  I can't figure this out. I'm trying to switch from pWsN to pNsW in the
example 1 tutorial problem with the line:

*SET_INT_PROP(TutorialProblemImplicit, Formulation,
TwoPCommonIndices::pNsW);*

Indices::pnIdx and Indices::sWIdx are now apparently recognized by the
compiler, but compilation terminates with the error:

In file included from /opt/dune/include/dumux/implicit/properties.hh:22:0,
                 from
/opt/dune/include/dumux/porousmediumflow/implicit/velocityoutput.hh:27,
                 from
/opt/dune/include/dumux/porousmediumflow/2p/implicit/model.hh:29,
                 from
/home/edscott/src/lswf_test1/src/tutorialproblem_implicit.hh:28,
                 from /home/edscott/src/lswf_test1/src/lswf_test1.cc:25:
/home/edscott/src/lswf_test1/src/tutorialproblem_implicit.hh:53:52: error:
'template<class TypeTag> struct Dumux::TwoPCommonIndices' used without
template parameters
 SET_INT_PROP(TutorialProblemImplicit, Formulation,
TwoPCommonIndices::pNsW);
                                                    ^
/opt/dune/include/dumux/common/propertysystem.hh:276:38: note: in
definition of macro 'SET_INT_PROP'
         static constexpr int value = __VA_ARGS__;               \
                                      ^
In file included from
/opt/dune/include/dumux/porousmediumflow/2p/implicit/propertydefaults.hh:34:0,
                 from
/opt/dune/include/dumux/porousmediumflow/2p/implicit/model.hh:201,
                 from
/home/edscott/src/lswf_test1/src/tutorialproblem_implicit.hh:28,
                 from /home/edscott/src/lswf_test1/src/lswf_test1.cc:25:
/opt/dune/include/dumux/porousmediumflow/2p/implicit/volumevariables.hh: In
instantiation of 'class
Dumux::TwoPVolumeVariables<Dumux::Properties::TTag::TutorialProblemImplicit>':
/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>
>]'
/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>
>]'
/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>]'
/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>]'
/home/edscott/src/lswf_test1/src/lswf_test1.cc:48:51:   required from here
/opt/dune/include/dumux/porousmediumflow/2p/implicit/volumevariables.hh:56:10:
error: enumerator value for 'formulation' is not an integer constant
     enum {
          ^
src/CMakeFiles/lswf_test1.dir/build.make:62: recipe for target
'src/CMakeFiles/lswf_test1.dir/lswf_test1.cc.o' failed
make[2]: *** [src/CMakeFiles/lswf_test1.dir/lswf_test1.cc.o] Error 1
CMakeFiles/Makefile2:1333: recipe for target
'src/CMakeFiles/lswf_test1.dir/all' failed
make[1]: *** [src/CMakeFiles/lswf_test1.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Would someone on the list please be so kind as to point out what I am
missing here?

kind regards to all,


-- 
------------------------------------------------------------------------------------
Dr. Edscott Wilson Garcia
Reservoir Engineering
Mexican Petroleum Institute
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20170315/084b6864/attachment.htm>


More information about the Dune mailing list