From: heister Date: Fri, 31 May 2013 22:31:33 +0000 (+0000) Subject: tests should not use is_artificial() etc on cells that are not active X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf5524718f741f534e0db6de822d69ada7edb385;p=dealii-svn.git tests should not use is_artificial() etc on cells that are not active git-svn-id: https://svn.dealii.org/trunk@29699 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/mpi/p4est_2d_constraintmatrix_04.cc b/tests/mpi/p4est_2d_constraintmatrix_04.cc index e934681168..e67545d428 100644 --- a/tests/mpi/p4est_2d_constraintmatrix_04.cc +++ b/tests/mpi/p4est_2d_constraintmatrix_04.cc @@ -220,17 +220,11 @@ void test() if (coarsen_me) for (unsigned int i=0;in_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(); } - - } } diff --git a/tests/mpi/p4est_3d_constraintmatrix_03.cc b/tests/mpi/p4est_3d_constraintmatrix_03.cc index 8e87deb5a7..09558e6db4 100644 --- a/tests/mpi/p4est_3d_constraintmatrix_03.cc +++ b/tests/mpi/p4est_3d_constraintmatrix_03.cc @@ -219,18 +219,11 @@ void test() if (coarsen_me) for (unsigned int i=0;in_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(); } - - } }