]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
It can be made simpler.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 24 Sep 2003 15:51:45 +0000 (15:51 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 24 Sep 2003 15:51:45 +0000 (15:51 +0000)
git-svn-id: https://svn.dealii.org/trunk@8027 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/coarsening_3d.cc

index 2199f155278dda914b9e34b50506393eedcf71ea..8b8616374937db7b1cc44b9a169d610476603738 100644 (file)
 
 #include <fstream>
 
-namespace PhantomGeometry 
-{
-  const double r1 = 5;
-  const double r2 = 10;
-  const double dz = 2;
-  
-  const double r0 = r1/(1.+std::sqrt(2.0));
-}
 
 
 void create_coarse_grid (Triangulation<3> &coarse_grid)
@@ -58,11 +50,11 @@ void create_coarse_grid (Triangulation<3> &coarse_grid)
     vertices.push_back (outer_points[i]);
 
                                    // then points on lower surface
-  vertices.push_back (Point<3>(0,0,-PhantomGeometry::dz));
+  vertices.push_back (Point<3>(0,0,-1));
   for (unsigned int i=0; i<8; ++i)
     vertices.push_back (outer_points[i]
                         +
-                        Point<3>(0,0,-PhantomGeometry::dz));
+                        Point<3>(0,0,-1));
 
   const unsigned int n_vertices_per_surface = 9;
   Assert (vertices.size() == n_vertices_per_surface*2,
@@ -80,7 +72,7 @@ void create_coarse_grid (Triangulation<3> &coarse_grid)
         { 1, 0, 7, 8 } };
       
                                    // now create cells out of this
-  for (unsigned int i=0; i<3; ++i)
+  for (unsigned int i=0; i<4; ++i)
     {
       CellData<3> cell;
       for (unsigned int j=0; j<4; ++j)
@@ -94,6 +86,7 @@ void create_coarse_grid (Triangulation<3> &coarse_grid)
 
                                    // finally generate a triangulation
                                    // out of this
+  GridReordering<3>::reorder_cells (cells);
   coarse_grid.create_triangulation (vertices, cells, sub_cell_data);
 }
 

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.