From: wolf Date: Thu, 29 Nov 2001 14:16:47 +0000 (+0000) Subject: Don't reset neighbor number if neighbor does not exist. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2536a944fcdbb9615eae2d08ed0d21e44f6b76c7;p=dealii-svn.git Don't reset neighbor number if neighbor does not exist. git-svn-id: https://svn.dealii.org/trunk@5309 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/grid/grid_reordering.cc b/deal.II/deal.II/source/grid/grid_reordering.cc index 499acaf235..eaed1be8a4 100644 --- a/deal.II/deal.II/source/grid/grid_reordering.cc +++ b/deal.II/deal.II/source/grid/grid_reordering.cc @@ -1191,11 +1191,8 @@ GridReordering::presort_cells (typename std::vector &cells, Assert (cells[c].cell_no == c, ExcInternalError()); for (unsigned int n=0; n::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::iterator i=faces.begin(); i!=faces.end(); ++i)