From 3fc6b3ab3dcab443ec4f835e3d7d8a90815c958a Mon Sep 17 00:00:00 2001 From: heister Date: Tue, 16 Nov 2010 21:26:57 +0000 Subject: [PATCH] document bug: n_dofs() is wrong after component_wise(). git-svn-id: https://svn.dealii.org/trunk@22773 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/mpi/p4est_2d_renumber_01.cc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tests/mpi/p4est_2d_renumber_01.cc b/tests/mpi/p4est_2d_renumber_01.cc index 915b0afa6f..6bffc3583c 100644 --- a/tests/mpi/p4est_2d_renumber_01.cc +++ b/tests/mpi/p4est_2d_renumber_01.cc @@ -59,19 +59,23 @@ void test() { IndexSet dof_set; DoFTools::extract_locally_active_dofs (dofh, dof_set); - //if (myid==0) - if (Utilities::System::get_this_mpi_process (MPI_COMM_WORLD) == 0) + if (myid==0) dof_set.print(deallog); } - if (Utilities::System::get_this_mpi_process (MPI_COMM_WORLD) == 0) - deallog << "****" << std::endl; + unsigned int n_dofs = dofh.n_dofs(); + if (myid==0) + deallog << "**** n_dofs = " << n_dofs << std::endl; + DoFRenumbering::component_wise(dofh); + //check if n_dofs() is still + //correct. This was a bug at some point. + Assert(n_dofs == dofh.n_dofs(),ExcInternalError()); { IndexSet dof_set; DoFTools::extract_locally_active_dofs (dofh, dof_set); - //if (myid==0) - if (Utilities::System::get_this_mpi_process (MPI_COMM_WORLD) == 0) + + if (myid==0) dof_set.print(deallog); if (myid==0) -- 2.39.5