Skip to content
Snippets Groups Projects
Commit 50117b37 authored by Timo Koch's avatar Timo Koch
Browse files

[1pncmin] assert that numPhases matches in model and fluidsystem

parent 67094b28
No related branches found
No related tags found
1 merge request!1125Fix/remove phase idx
...@@ -82,10 +82,8 @@ v = - \frac{k_{r}}{\mu} \mbox{\bf K} ...@@ -82,10 +82,8 @@ v = - \frac{k_{r}}{\mu} \mbox{\bf K}
#include <dumux/porousmediumflow/nonisothermal/vtkoutputfields.hh> #include <dumux/porousmediumflow/nonisothermal/vtkoutputfields.hh>
#include <dumux/material/fluidmatrixinteractions/1p/thermalconductivityaverage.hh> #include <dumux/material/fluidmatrixinteractions/1p/thermalconductivityaverage.hh>
namespace Dumux namespace Dumux {
{ namespace Properties {
namespace Properties
{
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
// Type tags // Type tags
////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////
...@@ -108,6 +106,11 @@ private: ...@@ -108,6 +106,11 @@ private:
using MT = typename GET_PROP_TYPE(TypeTag, ModelTraits); using MT = typename GET_PROP_TYPE(TypeTag, ModelTraits);
using PT = typename GET_PROP_TYPE(TypeTag, SpatialParams)::PermeabilityType; using PT = typename GET_PROP_TYPE(TypeTag, SpatialParams)::PermeabilityType;
static_assert(FSY::numComponents == MT::numComponents(), "Number of components mismatch between model and fluid system");
static_assert(FST::numComponents == MT::numComponents(), "Number of components mismatch between model and fluid state");
static_assert(FSY::numPhases == MT::numPhases(), "Number of phases mismatch between model and fluid system");
static_assert(FST::numPhases == MT::numPhases(), "Number of phases mismatch between model and fluid state");
using Traits = OnePNCVolumeVariablesTraits<PV, FSY, FST, SSY, SST, PT, MT>; using Traits = OnePNCVolumeVariablesTraits<PV, FSY, FST, SSY, SST, PT, MT>;
using NonMinVolVars = OnePNCVolumeVariables<Traits>; using NonMinVolVars = OnePNCVolumeVariables<Traits>;
public: public:
......
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