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-course
Commits
a94f71b8
Commit
a94f71b8
authored
Dec 19, 2018
by
Timo Koch
Browse files
Remove unused variable warning
parent
6834ca30
Changes
3
Hide whitespace changes
Inline
Side-by-side
exercises/exercise-biomineralization/biominproblem.hh
View file @
a94f71b8
...
...
@@ -280,7 +280,6 @@ public:
NumEqVector
values
(
0.0
);
Scalar
waterFlux
=
injVolumeflux_
;
// divide by area if area not 1! [m/s]
Scalar
gasFlux
=
injCO2_
;
// divide by area if area not 1! [m/s]
// Set values for Ca + urea injection above aquitard.
// Use negative values for injection.
...
...
@@ -297,6 +296,7 @@ public:
// Set CO2 injection below aquitard after the injBioTime
else
{
// Scalar gasFlux = injCO2_; // divide by area if area not 1! [m/s]
values
=
0.0
;
//mol/m²/s
}
...
...
exercises/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh
View file @
a94f71b8
...
...
@@ -190,7 +190,7 @@ public:
for
(
auto
&&
scv
:
scvs
(
fvGeometry
))
{
const
auto
&
volVars
=
elemVolVars
[
scv
];
//
const auto& volVars = elemVolVars[scv];
// insert calculation of the water mass here
waterMass
+=
0.0
;
}
...
...
exercises/solution/exercise-coupling-ff-pm/models/ex_models_pmproblem.hh
View file @
a94f71b8
...
...
@@ -231,11 +231,11 @@ public:
for
(
auto
&&
scv
:
scvs
(
fvGeometry
))
{
const
auto
&
volVars
=
elemVolVars
[
scv
];
for
(
int
phaseIdx
=
0
;
phaseIdx
<
FluidSystem
::
numPhases
;
++
phaseIdx
)
{
// insert calculation of the water mass here
#if EXNUMBER >= 2
const
auto
&
volVars
=
elemVolVars
[
scv
];
waterMass
+=
volVars
.
massFraction
(
phaseIdx
,
FluidSystem
::
H2OIdx
)
*
volVars
.
density
(
phaseIdx
)
*
volVars
.
saturation
(
phaseIdx
)
*
volVars
.
porosity
()
*
scv
.
volume
()
*
volVars
.
extrusionFactor
();
...
...
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