You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix getParentIntersectionFromLgrBoundaryFace using getOrigin()
Use intersection.inside().getOrigin() to obtain the level-0 ancestor of
the inside cell, then match on intersection.indexInInside() directly:
- If inside is a coarse (level-0) cell, getOrigin() returns the same cell
and indexInInside() is already the correct level-0 face index.
- If inside is a refined cell, getOrigin() returns its level-0 parent and
indexInInside() equals the parent face index (fine cells inherit face
directions from their parent).
The guard `inside().level() * outside().level() == 0` skips the unhandled
case where both cells are from different non-zero refinement levels.
0 commit comments