]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Don't reset neighbor number if neighbor does not exist.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 29 Nov 2001 14:16:47 +0000 (14:16 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 29 Nov 2001 14:16:47 +0000 (14:16 +0000)
git-svn-id: https://svn.dealii.org/trunk@5309 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_reordering.cc

index 499acaf2358b8ffc11ecff4fc75fd039a0aa0610..eaed1be8a4d7c66fb564dde269dc502013f89671 100644 (file)
@@ -1191,11 +1191,8 @@ GridReordering<dim>::presort_cells (typename std::vector<Cell>       &cells,
       Assert (cells[c].cell_no == c, ExcInternalError());
 
       for (unsigned int n=0; n<GeometryInfo<dim>::faces_per_cell; ++n)
-       {
-         Assert (cells[c].neighbors[n] < new_cell_numbers.size(),
-                 ExcInternalError());
+       if (cells[c].neighbors[n] != invalid_cell_number)
          cells[c].neighbors[n] = new_cell_numbers[cells[c].neighbors[n]];
-       };
     };
 
   for (typename std::map<Face,FaceData>::iterator i=faces.begin(); i!=faces.end(); ++i)

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.