Skip to content
Snippets Groups Projects
Commit 91f9f622 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'fix/assertMPFA' into 'next'

[interiorboundarydata] move makro outside of assert and remove bug MpfaFaceType -> MpfaFaceTypes

See merge request !352
parents 670219fc 56de0233
No related branches found
No related tags found
2 merge requests!617[WIP] Next,!352[interiorboundarydata] move makro outside of assert and remove bug MpfaFaceType -> MpfaFaceTypes
......@@ -123,12 +123,13 @@ public:
VolumeVariables facetVolVars(const FVElementGeometry& fvGeometry) const
{
//! This cannot be called when FacetCoupling is active
assert(!GET_PROP_VALUE(TypeTag, MpfaFacetCoupling) && "For models with a coupled problem on the element facets you have to"
"provide a suitable implementation of the InteriorBoundaryData class");
static const bool isFacetCoupling = GET_PROP_VALUE(TypeTag, MpfaFacetCoupling);
assert(!isFacetCoupling && "For models with a coupled problem on the element facets you have to"
"provide a suitable implementation of the InteriorBoundaryData class");
//! This can only be called for interior Dirichlet boundaries
assert(faceType_ == MpfaFaceType::interiorDirichlet && "requesting Dirichlet vol vars for a face which is"
"not marked as interior Dirichlet face.");
assert(faceType_ == MpfaFaceTypes::interiorDirichlet && "requesting Dirichlet vol vars for a face which is"
"not marked as interior Dirichlet face.");
auto element = problem_().model().globalFvGeometry().element(elementIndex());
auto priVars = problem_().dirichlet(element, fvGeometry.scvf(scvfIndex()));
......
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