]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
document bug: n_dofs() is wrong after component_wise().
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Nov 2010 21:26:57 +0000 (21:26 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Nov 2010 21:26:57 +0000 (21:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@22773 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/p4est_2d_renumber_01.cc

index 915b0afa6f918a150d4b67008ee59d320da59776..6bffc3583c532108a40ac5242b3498ef3888c788 100644 (file)
@@ -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)

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.