Skip to content

Commit d68433f

Browse files
committed
Allow for remote_elem interior_parent() values
We can have those on a ghosted boundary element
1 parent 1455144 commit d68433f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/mesh/unstructured_mesh.C

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,8 @@ void UnstructuredMesh::copy_nodes_and_elements(const MeshBase & other_mesh,
836836
for (auto & elem_pair : ip_map)
837837
{
838838
Elem * ip = const_cast<Elem *>(elem_pair.first->interior_parent());
839-
libmesh_assert(ip == other_interior_mesh->elem_ptr(ip->id()));
839+
libmesh_assert(ip == remote_elem ||
840+
ip == other_interior_mesh->elem_ptr(ip->id()));
840841
elem_pair.second->set_interior_parent(ip);
841842
}
842843
else

0 commit comments

Comments
 (0)