Skip to content

Commit fc6ee94

Browse files
committed
Assert our cache is still good
1 parent bfc15e6 commit fc6ee94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mesh/mesh_base.C

+2
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,8 @@ void MeshBase::change_elemset_id(elemset_id_type old_id, elemset_id_type new_id)
516516

517517
unsigned int MeshBase::spatial_dimension () const
518518
{
519+
libmesh_assert(_preparation.has_cached_elem_data);
520+
519521
return cast_int<unsigned int>(_spatial_dimension);
520522
}
521523

0 commit comments

Comments
 (0)