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

[factory] Return false for wasInserted on refined boundaries

parent 4eba0014
No related branches found
No related tags found
1 merge request!59[gridfactory] Implement insertBoundarySegment.
Pipeline #19615 canceled
......@@ -152,11 +152,10 @@ template <int dimworld>
*/
bool wasInserted( const typename FoamGrid<dimgrid, dimworld>::LeafIntersection &intersection ) const override
{
if ( !intersection.boundary() )
if ( !intersection.boundary() || intersection.inside().level() != 0 )
return false;
const auto& vertex = intersection.inside().template subEntity<1>(intersection.indexInInside());
const auto& it = boundarySegmentIndices_.find( this->insertionIndex(vertex) );
return (it != boundarySegmentIndices_.end());
}
......@@ -308,7 +307,7 @@ template <int dimworld>
*/
bool wasInserted( const typename FoamGrid<dimgrid, dimworld>::LeafIntersection &intersection ) const override
{
if ( !intersection.boundary() )
if ( !intersection.boundary() || intersection.inside().level() != 0 )
return false;
// obtain the vertices of the intersection by reference element numbering
......
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