Skip to content

Commit

Permalink
Fix for mixed topology when mixing cells with different facet types i…
Browse files Browse the repository at this point in the history
…n 3D (#3572)
  • Loading branch information
chrisrichardson authored Dec 20, 2024
1 parent 9ee46f0 commit 4d70f2f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpp/dolfinx/fem/dofmapbuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ build_basic_dofmaps(

const std::vector<std::vector<int>>& e_dofs_d = entity_dofs[d];

// Skip over undefined topology, e.g. quad facets of tetrahedra
if (d < D and !topology.connectivity({D, i}, {d, et}))
continue;

// Iterate over each entity of current dimension d and type et
std::span<const std::int32_t> c_to_e
= d < D ? topology.connectivity({D, i}, {d, et})->links(c)
Expand Down

0 comments on commit 4d70f2f

Please sign in to comment.