Skip to content
Snippets Groups Projects
Commit 7f996458 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[ff][momentumfluxvars] Add error message

parent 75027486
No related branches found
No related tags found
1 merge request!2932[fcstaggered] Various fixes
......@@ -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);
......
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