Skip to content
Snippets Groups Projects
Commit f4648e49 authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

[mpnc] fix source of compiler error

Most likely, the complex interdependencies of MPNC and NonEquilibrium
type tags and Indices classes yield the compiler error with clang.
Provide a temporary fix by not using the NumEq property directly.
parent 3b3d9335
No related branches found
No related tags found
1 merge request!733[mpnc] fix source of compiler error
......@@ -41,7 +41,14 @@ public:
enum { numPhases = FluidSystem::numPhases };
enum { numEnergyEqFluid = GET_PROP_VALUE(TypeTag, NumEnergyEqFluid) };
enum { numEnergyEqSolid = GET_PROP_VALUE(TypeTag, NumEnergyEqSolid) };
static constexpr int numEq = GET_PROP_VALUE(TypeTag, NumEq);
/*! \todo Replacing the sum below with GET_PROP_VALUE(TypeTag, NumEq)
* yields a compilation error with clang, due to complex
* interdependencies of MPNC and NonEquilibrium type tags and
* Indices classes. This should be fixed.
*/
static const unsigned int numEq = GET_PROP_VALUE(TypeTag, NumEqBalance)
+ GET_PROP_VALUE(TypeTag, NumEnergyEqFluid)
+ GET_PROP_VALUE(TypeTag, NumEnergyEqSolid);
/*!
* \brief Index for the temperature of the wetting phase in a vector of primary
......
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