]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use invert_all_cells_of_negative_grid function.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 6 Jul 2005 16:42:51 +0000 (16:42 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 6 Jul 2005 16:42:51 +0000 (16:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@11081 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_in.cc

index aa3b0d6f2e6f9ca169a863d687ef77161e1fd826..c7e452a87713c463d7d792b65e0b2f31d1eb1a65 100644 (file)
@@ -194,6 +194,7 @@ void GridIn<dim>::read_ucd (std::istream &in)
                                   // do some clean-up on vertices...
   delete_unused_vertices (vertices, cells, subcelldata);
                                   // ... and cells
+  GridReordering<dim>::invert_all_cells_of_negative_grid (vertices, cells);
   GridReordering<dim>::reorder_cells (cells);
   tria->create_triangulation (vertices, cells, subcelldata);
 }
@@ -358,6 +359,7 @@ void GridIn<dim>::read_dbmesh (std::istream &in)
                                   // do some clean-up on vertices...
   delete_unused_vertices (vertices, cells, subcelldata);
                                   // ...and cells
+  GridReordering<dim>::invert_all_cells_of_negative_grid (vertices, cells);
   GridReordering<dim>::reorder_cells (cells);
   tria->create_triangulation (vertices, cells, subcelldata);
 }
@@ -439,6 +441,7 @@ void GridIn<2>::read_xda (std::istream &in)
                                   // do some clean-up on vertices...
   delete_unused_vertices (vertices, cells, subcelldata);
                                   // ... and cells
+  GridReordering<2>::invert_all_cells_of_negative_grid (vertices, cells);
   GridReordering<2>::reorder_cells (cells);
   tria->create_triangulation (vertices, cells, subcelldata);
 }
@@ -521,6 +524,7 @@ void GridIn<3>::read_xda (std::istream &in)
                                   // do some clean-up on vertices...
   delete_unused_vertices (vertices, cells, subcelldata);
                                   // ... and cells
+  GridReordering<3>::invert_all_cells_of_negative_grid (vertices, cells);
   GridReordering<3>::reorder_cells (cells);
   tria->create_triangulation (vertices, cells, subcelldata);
 }
@@ -724,6 +728,7 @@ void GridIn<dim>::read_msh (std::istream &in)
                                   // do some clean-up on vertices...
   delete_unused_vertices (vertices, cells, subcelldata);
                                   // ... and cells
+  GridReordering<dim>::invert_all_cells_of_negative_grid (vertices, cells);
   GridReordering<dim>::reorder_cells (cells);
   tria->create_triangulation (vertices, cells, subcelldata);
 }

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.