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
4bbb4f5a
Commit
4bbb4f5a
authored
Mar 30, 2020
by
Dennis Gläser
Committed by
Timo Koch
Mar 30, 2020
Browse files
[tracer][localresidual] throw if flux derivatives are called for mpfa
parent
fe70d33f
Changes
1
Hide whitespace changes
Inline
Side-by-side
dumux/porousmediumflow/tracer/localresidual.hh
View file @
4bbb4f5a
...
...
@@ -26,6 +26,8 @@
#ifndef DUMUX_TRACER_LOCAL_RESIDUAL_HH
#define DUMUX_TRACER_LOCAL_RESIDUAL_HH
#include <dune/common/exceptions.hh>
#include <dumux/common/properties.hh>
#include <dumux/common/parameters.hh>
#include <dumux/discretization/method.hh>
...
...
@@ -229,6 +231,9 @@ public:
const
ElementFluxVariablesCache
&
elemFluxVarsCache
,
const
SubControlVolumeFace
&
scvf
)
const
{
if
constexpr
(
FVElementGeometry
::
GridGeometry
::
discMethod
!=
DiscretizationMethod
::
cctpfa
)
DUNE_THROW
(
Dune
::
NotImplemented
,
"Analytic flux differentiation only implemented for tpfa"
);
// advective term: we do the same for all tracer components
auto
rho
=
[](
const
VolumeVariables
&
volVars
)
{
return
useMoles
?
volVars
.
molarDensity
()
:
volVars
.
density
();
};
...
...
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