diff --git a/cmake/ExternalMFEM.cmake b/cmake/ExternalMFEM.cmake index 072c1fa70..8019e2167 100644 --- a/cmake/ExternalMFEM.cmake +++ b/cmake/ExternalMFEM.cmake @@ -363,6 +363,7 @@ set(MFEM_PATCH_FILES "${CMAKE_SOURCE_DIR}/extern/patch/mfem/patch_par_tet_mesh_fix.diff" "${CMAKE_SOURCE_DIR}/extern/patch/mfem/patch_ncmesh_interior_boundary_dev.diff" "${CMAKE_SOURCE_DIR}/extern/patch/mfem/patch_mesh_const_fix.diff" + "${CMAKE_SOURCE_DIR}/extern/patch/mfem/patch_pncmesh_update_fix.diff" ) include(ExternalProject) diff --git a/extern/patch/mfem/patch_pncmesh_update_fix.diff b/extern/patch/mfem/patch_pncmesh_update_fix.diff new file mode 100644 index 000000000..2ca6d1d80 --- /dev/null +++ b/extern/patch/mfem/patch_pncmesh_update_fix.diff @@ -0,0 +1,13 @@ +diff --git a/mesh/pncmesh.cpp b/mesh/pncmesh.cpp +index cd6625e9c..a8a88081f 100644 +--- a/mesh/pncmesh.cpp ++++ b/mesh/pncmesh.cpp +@@ -107,6 +107,8 @@ void ParNCMesh::Update() + entity_owner[i].DeleteAll(); + entity_pmat_group[i].DeleteAll(); + entity_index_rank[i].DeleteAll(); ++ entity_conf_group[i].DeleteAll(); ++ entity_elem_local[i].DeleteAll(); + } + + shared_vertices.Clear();