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
4f4a94d0
Commit
4f4a94d0
authored
Mar 04, 2021
by
Kilian Weishaupt
Browse files
Merge branch 'fixup/mp-adapter-tests' into 'master'
[test][fix] Deduce MPAdapter type on construction See merge request
!2506
parents
57ff08a7
7eed708b
Changes
3
Hide whitespace changes
Inline
Side-by-side
test/material/compositionalflash/test_compositionalflash.cc
View file @
4f4a94d0
...
...
@@ -225,7 +225,6 @@ int main()
enum
{
N2Idx
=
FluidSystem
::
N2Idx
};
using
MaterialLaw
=
Dumux
::
FluidMatrix
::
BrooksCoreyDefault
<
Scalar
>
;
using
MPAdapter
=
Dumux
::
FluidMatrix
::
MPAdapter
<
MaterialLaw
,
numPhases
>
;
Scalar
T
=
273.15
+
25
;
...
...
@@ -242,7 +241,7 @@ int main()
// set the parameters for the capillary pressure law
MaterialLaw
pcKrSw
(
typename
MaterialLaw
::
BasicParams
{
/*pe*/
0.0
,
/*lambda*/
2.0
});
MPAdapter
m
at
e
ri
al
(
pcKrSw
);
auto
material
=
Dumux
::
FluidM
atri
x
::
MPAdapter
(
pcKrSw
);
CompositionalFluidState
fsRef
;
FluidState1p2c
fsRefSeq
;
...
...
@@ -360,7 +359,7 @@ int main()
std
::
cout
<<
"testing two-phase against implicit routines, including capillary pressure
\n
"
;
MaterialLaw
pcKrS2
(
typename
MaterialLaw
::
BasicParams
{
/*pe*/
1e3
,
/*lambda*/
2.0
});
MPAdapter
material2
(
pcKrS2
);
auto
material2
=
Dumux
::
FluidMatrix
::
MPAdapter
(
pcKrS2
);
// set gas saturation
fsRef
.
setSaturation
(
gasPhaseIdx
,
0.5
);
...
...
test/material/immiscibleflash/test_immiscibleflash.cc
View file @
4f4a94d0
...
...
@@ -182,7 +182,7 @@ int main()
// set the parameters for the capillary pressure law
typename
PcKrSw
::
BasicParams
bParams
(
/*pe*/
0.0
,
/*lambda*/
2.0
);
auto
pcKrSw
=
PcKrSw
(
bParams
);
auto
material
=
Dumux
::
FluidMatrix
::
MPAdapter
<
PcKrSw
>
(
pcKrSw
);
auto
material
=
Dumux
::
FluidMatrix
::
MPAdapter
(
pcKrSw
);
ImmiscibleFluidState
fsRef
;
...
...
@@ -243,7 +243,7 @@ int main()
typename
PcKrSw
::
BasicParams
bParams2
(
/*pe*/
1e3
,
/*lambda*/
2.0
);
auto
pcKrSw2
=
PcKrSw
(
bParams2
);
auto
material2
=
Dumux
::
FluidMatrix
::
MPAdapter
<
PcKrSw
>
(
pcKrSw2
);
auto
material2
=
Dumux
::
FluidMatrix
::
MPAdapter
(
pcKrSw2
);
// set liquid saturation
fsRef
.
setSaturation
(
liquidPhaseIdx
,
0.5
);
...
...
test/material/ncpflash/test_ncpflash.cc
View file @
4f4a94d0
...
...
@@ -184,7 +184,7 @@ int main()
// set the parameters for the capillary pressure law
typename
PcKrSw
::
BasicParams
bParams
(
/*pe*/
0.0
,
/*lambda*/
2.0
);
auto
pcKrSw
=
PcKrSw
(
bParams
);
auto
material
=
Dumux
::
FluidMatrix
::
MPAdapter
<
PcKrSw
>
(
pcKrSw
);
auto
material
=
Dumux
::
FluidMatrix
::
MPAdapter
(
pcKrSw
);
CompositionalFluidState
fsRef
;
...
...
@@ -262,7 +262,7 @@ int main()
typename
PcKrSw
::
BasicParams
bParams2
(
/*pe*/
1e3
,
/*lambda*/
2.0
);
auto
pcKrSw2
=
PcKrSw
(
bParams2
);
auto
material2
=
Dumux
::
FluidMatrix
::
MPAdapter
<
PcKrSw
>
(
pcKrSw2
);
auto
material2
=
Dumux
::
FluidMatrix
::
MPAdapter
(
pcKrSw2
);
// set gas saturation
fsRef
.
setSaturation
(
gasPhaseIdx
,
0.5
);
...
...
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