Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
67094b28
Commit
67094b28
authored
6 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[richardsnc] assert that numPhases matches in model and fluidsystem
parent
8d6c8070
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1125
Fix/remove phase idx
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/porousmediumflow/richardsnc/model.hh
+5
-3
5 additions, 3 deletions
dumux/porousmediumflow/richardsnc/model.hh
with
5 additions
and
3 deletions
dumux/porousmediumflow/richardsnc/model.hh
+
5
−
3
View file @
67094b28
...
@@ -141,9 +141,6 @@ public:
...
@@ -141,9 +141,6 @@ public:
using
type
=
RichardsNCModelTraits
<
FluidSystem
::
numComponents
,
GET_PROP_VALUE
(
TypeTag
,
UseMoles
),
GET_PROP_VALUE
(
TypeTag
,
ReplaceCompEqIdx
)
>
;
using
type
=
RichardsNCModelTraits
<
FluidSystem
::
numComponents
,
GET_PROP_VALUE
(
TypeTag
,
UseMoles
),
GET_PROP_VALUE
(
TypeTag
,
ReplaceCompEqIdx
)
>
;
};
};
//! The default phase index to access the fluid system
SET_INT_PROP
(
RichardsNC
,
PhaseIdx
,
0
);
//! Define that per default mole fractions are used in the balance equations
//! Define that per default mole fractions are used in the balance equations
SET_BOOL_PROP
(
RichardsNC
,
UseMoles
,
true
);
SET_BOOL_PROP
(
RichardsNC
,
UseMoles
,
true
);
...
@@ -166,6 +163,11 @@ private:
...
@@ -166,6 +163,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
=
RichardsVolumeVariablesTraits
<
PV
,
FSY
,
FST
,
SSY
,
SST
,
PT
,
MT
>
;
using
Traits
=
RichardsVolumeVariablesTraits
<
PV
,
FSY
,
FST
,
SSY
,
SST
,
PT
,
MT
>
;
public:
public:
using
type
=
RichardsNCVolumeVariables
<
Traits
>
;
using
type
=
RichardsNCVolumeVariables
<
Traits
>
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment