From: wolf Date: Wed, 24 Sep 2003 16:03:13 +0000 (+0000) Subject: Three cells is enough. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97804b381016079f9547f5d6c2026f756dc2aa0b;p=dealii-svn.git Three cells is enough. git-svn-id: https://svn.dealii.org/trunk@8028 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/bits/coarsening_3d.cc b/tests/bits/coarsening_3d.cc index 8b86163749..e475b44a70 100644 --- a/tests/bits/coarsening_3d.cc +++ b/tests/bits/coarsening_3d.cc @@ -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)