]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a funny comment. 8556/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 12 Aug 2019 23:43:37 +0000 (17:43 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 12 Aug 2019 23:43:37 +0000 (17:43 -0600)
source/grid/grid_reordering.cc

index 87d0e8c400a47e01ae8c7cf0bb82c240dc55b36f..dfff9db7a440319f23b0f6bf2147b53b6629a21a 100644 (file)
@@ -1166,12 +1166,9 @@ GridReordering<2>::invert_all_cells_of_negative_grid(
           ++n_negative_cells;
           std::swap(cell.vertices[1], cell.vertices[3]);
 
-          // check whether the
-          // resulting cell is now ok.
-          // if not, then the grid is
-          // seriously broken and
-          // should be sticked into the
-          // bin
+          // Check whether the resulting cell is now ok.
+          // If not, then the grid is seriously broken and
+          // we just give up.
           for (unsigned int i = 0; i < GeometryInfo<2>::vertices_per_cell; ++i)
             vertices_lex[GeometryInfo<2>::ucd_to_deal[i]] = cell.vertices[i];
           AssertThrow(GridTools::cell_measure<2>(all_vertices, vertices_lex) >
@@ -1238,12 +1235,9 @@ GridReordering<3>::invert_all_cells_of_negative_grid(
           for (unsigned int i = 0; i < 4; ++i)
             std::swap(cell.vertices[i], cell.vertices[i + 4]);
 
-          // check whether the
-          // resulting cell is now ok.
-          // if not, then the grid is
-          // seriously broken and
-          // should be sticked into the
-          // bin
+          // Check whether the resulting cell is now ok.
+          // If not, then the grid is seriously broken and
+          // we just give up.
           for (unsigned int i = 0; i < GeometryInfo<3>::vertices_per_cell; ++i)
             vertices_lex[GeometryInfo<3>::ucd_to_deal[i]] = cell.vertices[i];
           AssertThrow(GridTools::cell_measure<3>(all_vertices, vertices_lex) >

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.