Skip to content

Commit 48bb707

Browse files
committed
Preparation::libmesh_assert_consistent()
I haven't actually seen this fail yet but it does seem like the sort of thing we should be checking.
1 parent 6fff3d7 commit 48bb707

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

include/mesh/mesh_base.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,6 +2076,18 @@ class MeshBase : public ParallelObject
20762076
has_reinit_ghosting_functors == other.has_reinit_ghosting_functors &&
20772077
has_boundary_id_sets == other.has_boundary_id_sets;
20782078
}
2079+
2080+
void libmesh_assert_consistent (const Parallel::Communicator & libmesh_dbg_var(comm)) {
2081+
libmesh_assert(comm.verify(is_partitioned));
2082+
libmesh_assert(comm.verify(has_synched_id_counts));
2083+
libmesh_assert(comm.verify(has_neighbor_ptrs));
2084+
libmesh_assert(comm.verify(has_cached_elem_data));
2085+
libmesh_assert(comm.verify(has_interior_parent_ptrs));
2086+
libmesh_assert(comm.verify(has_removed_remote_elements));
2087+
libmesh_assert(comm.verify(has_removed_orphaned_nodes));
2088+
libmesh_assert(comm.verify(has_reinit_ghosting_functors));
2089+
libmesh_assert(comm.verify(has_boundary_id_sets));
2090+
}
20792091
};
20802092

20812093
protected:

0 commit comments

Comments
 (0)