Commit 522325f7 authored by Christian Engwer's avatar Christian Engwer Committed by Steffen Müthing

Merge branch 'Feature/issue2_missing_intersection_insertion_index_UG' into 'master'

Feature/issue2 add insertionIndex for leaf intersection in UG

See merge request !20
(cherry picked from commit 8f33a71c)
Signed-off-by: Steffen Müthing's avatarSteffen Müthing <>
parent ec7c9f1b
......@@ -244,6 +244,23 @@ namespace Dune {
return UG_NS<dimension>::levelIndex(grid_->getRealImplementation(entity).target_);
/** \brief Return the number of the intersection in the order of insertion into the factory
* For UGGrid intersections this number is the same as the boundary segment index
virtual unsigned int
insertionIndex ( const typename UGGrid<dimworld>::LeafIntersection &intersection ) const
return intersection.boundarySegmentIndex();
/** \brief Return true if the intersection has been explictily insterted into the factory */
virtual bool
wasInserted ( const typename UGGrid<dimworld>::LeafIntersection &intersection ) const
return (insertionIndex( intersection ) < boundarySegmentVertices_.size());
// Initialize the grid structure in UG
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment