Skip to content
Snippets Groups Projects
Commit 56de0233 authored by Beatrix Becker's avatar Beatrix Becker
Browse files

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

parent 670219fc
No related branches found
No related tags found
Loading
...@@ -123,12 +123,13 @@ public: ...@@ -123,12 +123,13 @@ public:
VolumeVariables facetVolVars(const FVElementGeometry& fvGeometry) const VolumeVariables facetVolVars(const FVElementGeometry& fvGeometry) const
{ {
//! This cannot be called when FacetCoupling is active //! 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" static const bool isFacetCoupling = GET_PROP_VALUE(TypeTag, MpfaFacetCoupling);
"provide a suitable implementation of the InteriorBoundaryData class"); 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 //! This can only be called for interior Dirichlet boundaries
assert(faceType_ == MpfaFaceType::interiorDirichlet && "requesting Dirichlet vol vars for a face which is" assert(faceType_ == MpfaFaceTypes::interiorDirichlet && "requesting Dirichlet vol vars for a face which is"
"not marked as interior Dirichlet face."); "not marked as interior Dirichlet face.");
auto element = problem_().model().globalFvGeometry().element(elementIndex()); auto element = problem_().model().globalFvGeometry().element(elementIndex());
auto priVars = problem_().dirichlet(element, fvGeometry.scvf(scvfIndex())); 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