From 2536a944fcdbb9615eae2d08ed0d21e44f6b76c7 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 29 Nov 2001 14:16:47 +0000 Subject: [PATCH] Don't reset neighbor number if neighbor does not exist. git-svn-id: https://svn.dealii.org/trunk@5309 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/grid/grid_reordering.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) -- 2.39.5