Skip to content

Commit 4fcf7b8

Browse files
authored
Merge pull request #33346 from roystgnr/rebuild_cache
cache_elem_data() if needed in surface remesher
2 parents 7a8b0bc + e52ae48 commit 4fcf7b8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

framework/src/meshgenerators/SurfaceSubdomainsDelaunayRemesher.C

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,13 @@ SurfaceSubdomainsDelaunayRemesher::General2DDelaunay(
448448
}
449449
}
450450
}
451+
452+
// get_mesh_subdomains() pulls from a cache, and can scream at us
453+
// if the Mesh thinks the element caches have been invalidated by
454+
// Modification.
455+
if (!mesh_2d.preparation().has_cached_elem_data)
456+
mesh_2d.cache_elem_data();
457+
451458
// Give the old subdomain to all elements
452459
const auto common_id = mesh_2d.get_mesh_subdomains().begin();
453460
for (auto & elem : mesh->active_element_ptr_range())

0 commit comments

Comments
 (0)