]> https://gitweb.dealii.org/ - dealii.git/commitdiff
we only need to check the cells that have user flags set since those are the ones...
authorSpencer Patty <srobertp@gmail.com>
Fri, 12 Feb 2016 18:18:08 +0000 (12:18 -0600)
committerSpencer Patty <srobertp@gmail.com>
Fri, 12 Feb 2016 18:18:08 +0000 (12:18 -0600)
source/grid/grid_tools.cc

index 123a2e28f6269a3aa103f89880bf938fb3cf2d5d..9aa07a0d782228f5d01ac65364d013a49bb89874 100644 (file)
@@ -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());
+        }
       }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.