From 7bb1067bf0090b4d5dc855a3d49ffb6c514c51d5 Mon Sep 17 00:00:00 2001 From: Spencer Patty Date: Fri, 12 Feb 2016 12:18:08 -0600 Subject: [PATCH] we only need to check the cells that have user flags set since those are the ones that correspond to the patch set. --- source/grid/grid_tools.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index 123a2e28f6..9aa07a0d78 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -3069,11 +3069,14 @@ next_cell: cell = local_triangulation.begin(); cell != local_triangulation.end(); ++cell) { - Assert(patch_to_global_tria_map_tmp.find(cell) != patch_to_global_tria_map_tmp.end(), - ExcInternalError() ); + if (cell->user_flag_set() ) + { + Assert(patch_to_global_tria_map_tmp.find(cell) != patch_to_global_tria_map_tmp.end(), + ExcInternalError() ); - Assert(cell->center().distance( patch_to_global_tria_map_tmp[cell]->center())<=1e-15*cell->diameter(), - ExcInternalError()); + Assert(cell->center().distance( patch_to_global_tria_map_tmp[cell]->center())<=1e-15*cell->diameter(), + ExcInternalError()); + } } -- 2.39.5