From d584e257dd34be1456f5097e05cfc9b8a9869971 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 31 May 2013 22:31:33 +0000 Subject: [PATCH] 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 --- tests/mpi/p4est_2d_constraintmatrix_04.cc | 8 +------- tests/mpi/p4est_3d_constraintmatrix_03.cc | 9 +-------- 2 files changed, 2 insertions(+), 15 deletions(-) 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(); } - - } } -- 2.39.5