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

[fluidsystems] Assert phase statein 1pgas/liquid fluidsystem

parent 602dc74e
No related branches found
No related tags found
1 merge request!887Feature/more generic fluidsystems
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <dune/common/exceptions.hh> #include <dune/common/exceptions.hh>
#include <dumux/material/fluidsystems/base.hh> #include <dumux/material/fluidsystems/base.hh>
#include <dumux/material/components/componenttraits.hh>
namespace Dumux namespace Dumux
{ {
...@@ -48,6 +49,8 @@ class OnePGas ...@@ -48,6 +49,8 @@ class OnePGas
using ThisType = OnePGas<Scalar, ComponentT>; using ThisType = OnePGas<Scalar, ComponentT>;
using Base = BaseFluidSystem<Scalar, ThisType>; using Base = BaseFluidSystem<Scalar, ThisType>;
static_assert(ComponentTraits<ComponentT>::hasGasState, "The component does not implement a gas state!");
public: public:
using Component = ComponentT; using Component = ComponentT;
using ParameterCache = NullParameterCache; using ParameterCache = NullParameterCache;
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <dune/common/exceptions.hh> #include <dune/common/exceptions.hh>
#include <dumux/material/fluidsystems/base.hh> #include <dumux/material/fluidsystems/base.hh>
#include <dumux/material/components/componenttraits.hh>
namespace Dumux namespace Dumux
{ {
...@@ -47,6 +48,8 @@ class OnePLiquid ...@@ -47,6 +48,8 @@ class OnePLiquid
using ThisType = OnePLiquid<Scalar, ComponentT>; using ThisType = OnePLiquid<Scalar, ComponentT>;
using Base = BaseFluidSystem<Scalar, ThisType>; using Base = BaseFluidSystem<Scalar, ThisType>;
static_assert(ComponentTraits<ComponentT>::hasLiquidState, "The component does not implement a liquid state!");
public: public:
using Component = ComponentT; using Component = ComponentT;
using ParameterCache = NullParameterCache; using ParameterCache = NullParameterCache;
......
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