Skip to content
Snippets Groups Projects
Commit 4bbb4f5a authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[tracer][localresidual] throw if flux derivatives are called for mpfa

parent fe70d33f
No related branches found
No related tags found
1 merge request!1610Feature/tracer multiphase test zero saturation
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
#ifndef DUMUX_TRACER_LOCAL_RESIDUAL_HH #ifndef DUMUX_TRACER_LOCAL_RESIDUAL_HH
#define DUMUX_TRACER_LOCAL_RESIDUAL_HH #define DUMUX_TRACER_LOCAL_RESIDUAL_HH
#include <dune/common/exceptions.hh>
#include <dumux/common/properties.hh> #include <dumux/common/properties.hh>
#include <dumux/common/parameters.hh> #include <dumux/common/parameters.hh>
#include <dumux/discretization/method.hh> #include <dumux/discretization/method.hh>
...@@ -229,6 +231,9 @@ public: ...@@ -229,6 +231,9 @@ public:
const ElementFluxVariablesCache& elemFluxVarsCache, const ElementFluxVariablesCache& elemFluxVarsCache,
const SubControlVolumeFace& scvf) const 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 // advective term: we do the same for all tracer components
auto rho = [](const VolumeVariables& volVars) auto rho = [](const VolumeVariables& volVars)
{ return useMoles ? volVars.molarDensity() : volVars.density(); }; { return useMoles ? volVars.molarDensity() : volVars.density(); };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment