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
a81d6662
Commit
a81d6662
authored
6 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[fluidsystems] Assert phase statein 1pgas/liquid fluidsystem
parent
602dc74e
No related branches found
No related tags found
1 merge request
!887
Feature/more generic fluidsystems
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/material/fluidsystems/1pgas.hh
+3
-0
3 additions, 0 deletions
dumux/material/fluidsystems/1pgas.hh
dumux/material/fluidsystems/1pliquid.hh
+3
-0
3 additions, 0 deletions
dumux/material/fluidsystems/1pliquid.hh
with
6 additions
and
0 deletions
dumux/material/fluidsystems/1pgas.hh
+
3
−
0
View file @
a81d6662
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
dumux/material/fluidsystems/1pliquid.hh
+
3
−
0
View file @
a81d6662
...
@@ -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
;
...
...
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