]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
tests should not use is_artificial() etc on cells that are not active
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 May 2013 22:31:33 +0000 (22:31 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 31 May 2013 22:31:33 +0000 (22:31 +0000)
git-svn-id: https://svn.dealii.org/trunk@29699 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/p4est_2d_constraintmatrix_04.cc
tests/mpi/p4est_3d_constraintmatrix_03.cc

index e934681168130501a3dd2a5bb9994fa7b6393241..e67545d428bad06f3ce042c67a09c75f4c5fd6b6 100644 (file)
@@ -220,17 +220,11 @@ void test()
          if (coarsen_me)
            for (unsigned int i=0;i<cell->n_children();++i)
              {
-               if (cell->child(i)->is_artificial())
-                 ;
-               else if (cell->child(i)->is_ghost())
-                 ;
-               else
+               if (cell->child(i)->active() && cell->child(i)->is_locally_owned())
                  {
                    cell->child(i)->clear_refine_flag();
                    cell->child(i)->set_coarsen_flag();
                  }
-
-
              }
 
        }
index 8e87deb5a7af6229eb1e4c4cd0d9442012b1fa99..09558e6db4d2fbcbdb207d7d6afe2de7a179f140 100644 (file)
@@ -219,18 +219,11 @@ void test()
          if (coarsen_me)
            for (unsigned int i=0;i<cell->n_children();++i)
              {
-               if (cell->child(i)->is_artificial())
-                 ;//             std::cout << "art" << std::endl;
-               else if (cell->child(i)->is_ghost())
-                 ;//             std::cout << "ghost" << std::endl;
-               else
+               if (cell->child(i)->active() && cell->child(i)->is_locally_owned())
                  {
-
                    cell->child(i)->clear_refine_flag();
                    cell->child(i)->set_coarsen_flag();
                  }
-
-
              }
 
        }

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.