Skip to content

Commit efdaf92

Browse files
committed
Also allow remote_elems to neighbor active local 1D elements
1 parent 0144e6d commit efdaf92

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/mesh/unstructured_mesh.C

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,11 +1068,13 @@ void UnstructuredMesh::find_neighbors (const bool reset_remote_elements,
10681068
libmesh_assert(neigh_has_remote_children ||
10691069
neigh->dim() == 1);
10701070

1071-
// And let's double-check that we don't have
1072-
// a remote_elem neighboring an active local element
1071+
// And let's double-check that we don't have a
1072+
// remote_elem neighboring an active local element
1073+
// unless this is a 1D Elem, for the reasons
1074+
// discussed above.
10731075
if (current_elem->active())
1074-
libmesh_assert_not_equal_to (current_elem->processor_id(),
1075-
this->processor_id());
1076+
libmesh_assert (current_elem->dim() == 1 ||
1077+
current_elem->processor_id() != this->processor_id());
10761078
#endif // DEBUG
10771079
neigh = const_cast<RemoteElem *>(remote_elem);
10781080
}

0 commit comments

Comments
 (0)