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
31a6889d
Commit
31a6889d
authored
Nov 04, 2021
by
Leopold Stadler
Browse files
fix typo add &
parent
2b31e9b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/flux/shallowwaterviscousflux.hh
View file @
31a6889d
...
...
@@ -211,13 +211,13 @@ public:
}
}();
// Compute the viscous momentum fluxes
, take
cone
c
cting water depth at the interface
// Compute the viscous momentum fluxes
with
con
n
ecting water depth at the interface
using
std
::
min
;
using
std
::
max
;
const
auto
freeSurfaceInside
=
insideVolVars
.
waterDepth
()
+
insideVolVars
.
bedSurface
();
const
auto
freeSurfaceOutside
=
outsideVolVars
.
waterDepth
()
+
outsideVolVars
.
bedSurface
();
const
auto
interfaceWaterDepth
=
max
(
min
(
freeSurfaceInside
,
freeSurfaceOutside
)
-
max
(
insideVolVars
.
bedSurface
(),
outsideVolVars
.
bedSurface
()),
0.0
);
const
auto
[
gradU
,
gradV
]
=
gradVelocity
;
const
auto
&
[
gradU
,
gradV
]
=
gradVelocity
;
const
auto
uViscousFlux
=
turbViscosity
*
interfaceWaterDepth
*
gradU
;
const
auto
vViscousFlux
=
turbViscosity
*
interfaceWaterDepth
*
gradV
;
...
...
Write
Preview
Markdown
is supported
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