Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
50117b37
Commit
50117b37
authored
Jul 20, 2018
by
Timo Koch
Browse files
[1pncmin] assert that numPhases matches in model and fluidsystem
parent
67094b28
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/porousmediumflow/1pncmin/model.hh
View file @
50117b37
...
...
@@ -82,10 +82,8 @@ v = - \frac{k_{r}}{\mu} \mbox{\bf K}
#include
<dumux/porousmediumflow/nonisothermal/vtkoutputfields.hh>
#include
<dumux/material/fluidmatrixinteractions/1p/thermalconductivityaverage.hh>
namespace
Dumux
{
namespace
Properties
{
namespace
Dumux
{
namespace
Properties
{
//////////////////////////////////////////////////////////////////
// Type tags
//////////////////////////////////////////////////////////////////
...
...
@@ -108,6 +106,11 @@ private:
using
MT
=
typename
GET_PROP_TYPE
(
TypeTag
,
ModelTraits
);
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
NonMinVolVars
=
OnePNCVolumeVariables
<
Traits
>
;
public:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment