From: wolf Date: Thu, 18 Feb 1999 16:22:27 +0000 (+0000) Subject: Fix another real show stopper bug. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23fcdd329356bbe3fefe633bad0b4fc24ea5e477;p=dealii-svn.git Fix another real show stopper bug. git-svn-id: https://svn.dealii.org/trunk@841 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/Attic/examples/grid/grid_test.cc b/deal.II/deal.II/Attic/examples/grid/grid_test.cc index 0b18f9cee4..91ee5dfa7a 100644 --- a/deal.II/deal.II/Attic/examples/grid/grid_test.cc +++ b/deal.II/deal.II/Attic/examples/grid/grid_test.cc @@ -207,8 +207,12 @@ void test (const int test_case) { case 2: case 3: { - tria.begin_active()->face(2)->set_boundary_indicator(1); - tria.begin_active()->face(4)->set_boundary_indicator(1); + if (dim==3) + { + tria.begin_active()->face(2)->set_boundary_indicator(1); + tria.begin_active()->face(4)->set_boundary_indicator(1); + }; + // set the boundary function Ball ball; diff --git a/tests/big-tests/grid/grid_test.cc b/tests/big-tests/grid/grid_test.cc index 0b18f9cee4..91ee5dfa7a 100644 --- a/tests/big-tests/grid/grid_test.cc +++ b/tests/big-tests/grid/grid_test.cc @@ -207,8 +207,12 @@ void test (const int test_case) { case 2: case 3: { - tria.begin_active()->face(2)->set_boundary_indicator(1); - tria.begin_active()->face(4)->set_boundary_indicator(1); + if (dim==3) + { + tria.begin_active()->face(2)->set_boundary_indicator(1); + tria.begin_active()->face(4)->set_boundary_indicator(1); + }; + // set the boundary function Ball ball;