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
7e5efcb0
Commit
7e5efcb0
authored
Nov 24, 2020
by
Martin Schneider
Browse files
[ffpm][tpfa] Fix unused variable warning
parent
a9e6c2e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/multidomain/boundary/stokesdarcy/cellcentered/tpfa/couplingdata.hh
View file @
7e5efcb0
...
...
@@ -89,13 +89,10 @@ public:
Scalar
momentumFlux
(
0.0
);
const
auto
&
stokesContext
=
this
->
couplingManager
().
stokesCouplingContext
(
element
,
scvf
);
const
auto
darcyPhaseIdx
=
couplingPhaseIdx
(
porousMediumIdx
);
// - p_pm * n_pm = p_pm * n_ff
const
Scalar
darcyPressure
=
stokesContext
.
volVars
.
pressure
(
darcyPhaseIdx
);
if
constexpr
(
numPhasesDarcy
>
1
)
momentumFlux
=
darcyPressure
;
momentumFlux
=
stokesContext
.
volVars
.
pressure
(
couplingPhaseIdx
(
porousMediumIdx
))
;
else
// use pressure reconstruction for single phase models
momentumFlux
=
pressureAtInterface_
(
element
,
scvf
,
stokesElemFaceVars
,
stokesContext
);
// TODO: generalize for permeability tensors
...
...
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