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
......@@ -26,6 +26,8 @@
#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(); };
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment