From: Spencer Patty Date: Fri, 12 Feb 2016 18:18:08 +0000 (-0600) Subject: we only need to check the cells that have user flags set since those are the ones... X-Git-Tag: v8.5.0-rc1~1319^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bb1067bf0090b4d5dc855a3d49ffb6c514c51d5;p=dealii.git we only need to check the cells that have user flags set since those are the ones that correspond to the patch set. --- 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()); + } }