From 7f996458caf3ae3ec79b953b4da9e2a4ed4341cc Mon Sep 17 00:00:00 2001 From: Kilian Weishaupt <kilian.weishaupt@iws.uni-stuttgart.de> Date: Fri, 12 Nov 2021 12:24:10 +0100 Subject: [PATCH] [ff][momentumfluxvars] Add error message --- dumux/freeflow/navierstokes/momentum/fluxvariables.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dumux/freeflow/navierstokes/momentum/fluxvariables.hh b/dumux/freeflow/navierstokes/momentum/fluxvariables.hh index 815dcd88e0..765620d2fe 100644 --- a/dumux/freeflow/navierstokes/momentum/fluxvariables.hh +++ b/dumux/freeflow/navierstokes/momentum/fluxvariables.hh @@ -428,6 +428,8 @@ public: { if (const auto& scv = fvGeometry.scv(scvf.insideScvIdx()); this->elemBcTypes()[scvf.localIndex()].isDirichlet(scv.dofAxis())) return problem.dirichlet(this->element(), scvf)[scv.dofAxis()] * this->problem().density(this->element(), scv); + else + DUNE_THROW(Dune::InvalidStateException, "Neither Dirichlet nor Neumann BC set at " << scvf.ipGlobal()); } const bool selfIsUpstream = scvf.directionSign() == sign(transportingVelocity); -- GitLab