]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix another real show stopper bug.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 18 Feb 1999 16:22:27 +0000 (16:22 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 18 Feb 1999 16:22:27 +0000 (16:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@841 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/grid/grid_test.cc
tests/big-tests/grid/grid_test.cc

index 0b18f9cee406ffcda9515ecfa1787d9d193349dd..91ee5dfa7a9fc346ebf2f9ee1b2ab66667d077d1 100644 (file)
@@ -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<dim>       ball;
index 0b18f9cee406ffcda9515ecfa1787d9d193349dd..91ee5dfa7a9fc346ebf2f9ee1b2ab66667d077d1 100644 (file)
@@ -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<dim>       ball;

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.