]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Three cells is enough.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 24 Sep 2003 16:03:13 +0000 (16:03 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 24 Sep 2003 16:03:13 +0000 (16:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@8028 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/coarsening_3d.cc

index 8b8616374937db7b1cc44b9a169d610476603738..e475b44a70a5b5b3f9d36c067af5872269806631 100644 (file)
@@ -46,17 +46,17 @@ void create_coarse_grid (Triangulation<3> &coarse_grid)
                                    // and the rest of those on the
                                    // upper surface
   vertices.push_back (Point<3>(0,0,0));
-  for (unsigned int i=0; i<8; ++i)
+  for (unsigned int i=0; i<7; ++i)
     vertices.push_back (outer_points[i]);
 
                                    // then points on lower surface
   vertices.push_back (Point<3>(0,0,-1));
-  for (unsigned int i=0; i<8; ++i)
+  for (unsigned int i=0; i<7; ++i)
     vertices.push_back (outer_points[i]
                         +
                         Point<3>(0,0,-1));
 
-  const unsigned int n_vertices_per_surface = 9;
+  const unsigned int n_vertices_per_surface = 8;
   Assert (vertices.size() == n_vertices_per_surface*2,
           ExcInternalError());
     
@@ -65,14 +65,13 @@ void create_coarse_grid (Triangulation<3> &coarse_grid)
                                    // vertices of the upper surface,
                                    // the lower ones are the same
                                    // +12
-  const unsigned int connectivity[4][4]
+  const unsigned int connectivity[3][4]
     = { { 1, 2, 3, 0 },
         { 3, 4, 5, 0 },
-        { 0, 5, 6, 7 },
-        { 1, 0, 7, 8 } };
+        { 0, 5, 6, 7 } };
       
                                    // now create cells out of this
-  for (unsigned int i=0; i<4; ++i)
+  for (unsigned int i=0; i<3; ++i)
     {
       CellData<3> cell;
       for (unsigned int j=0; j<4; ++j)

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.