]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Test is now fixed.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 3 Aug 2011 21:04:07 +0000 (21:04 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 3 Aug 2011 21:04:07 +0000 (21:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@24011 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/solution_transfer_01.cc

index b2a78f739750df01eb8ee61a44d015576b86c311..a9b27503975e5ede587c550a9576d104cd7cc02c 100644 (file)
@@ -12,7 +12,8 @@
 //---------------------------------------------------------------------------
 
 
-// SolutionTransfer locks up when a process has no locally owned cells
+// SolutionTransfer locked up when a process has no locally owned
+// cells. this was fixed with r24007
 
 #include "../tests.h"
 #include "coarse_grid_common.h"
@@ -54,8 +55,8 @@ void test()
 
   GridGenerator::hyper_cube (tria,-1.0,1.0);
 
-  DoFHandler<2> dh(tria);
   FE_Q<2> fe(1);
+  DoFHandler<2> dh(tria);
 
   dh.distribute_dofs(fe);
 
@@ -84,22 +85,23 @@ void test()
 
   PETScWrappers::MPI::Vector  tmp(MPI_COMM_WORLD,dh.n_dofs(),dh.n_locally_owned_dofs());
 
-  std::cout<<"I WAS HERE"<<std::endl;
-
   soltrans.interpolate (tmp);
 
-  std::cout<<"I AM HERE"<<std::endl;
-
   solution.reinit(MPI_COMM_WORLD,locally_owned_dofs,locally_relevant_dofs);
   solution = tmp;
   solution.update_ghost_values();
+
+                                  // make sure no processor is
+                                  // hanging
+  MPI_Barrier (MPI_COMM_WORLD);
+
+  if (Utilities::System::get_this_mpi_process (MPI_COMM_WORLD) == 0)
+    deallog << "OK" << std::endl;
 }
 
 
 int main(int argc, char *argv[])
 {
-  abort ();
-  
   PetscInitialize(&argc,&argv,0,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.