]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
repair test and no longer call update_ghost_values()
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 15 Feb 2013 05:19:15 +0000 (05:19 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 15 Feb 2013 05:19:15 +0000 (05:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@28402 0785d39b-7218-0410-832d-ea1e28bc413d

tests/mpi/ghost_01.cc

index 637ae4755ecc2b0f27bfdf8fe47e0b0fce68e48c..6cc3258d989d22fc7b58e4e17103389df390421a 100644 (file)
@@ -39,16 +39,17 @@ void test ()
   IndexSet local_relevant(numproc*2);
   local_relevant.add_range(1,2);
 
-  PETScWrappers::MPI::Vector v_tmp(MPI_COMM_WORLD, local_active.size(), local_active.n_elements());
+  PETScWrappers::MPI::Vector vb(MPI_COMM_WORLD, local_active);
   PETScWrappers::MPI::Vector v(MPI_COMM_WORLD, local_active, local_relevant);
 
                                   // set local values
-  v(myid*2)=myid*2.0;
-  v(myid*2+1)=myid*2.0+1.0;
+  vb(myid*2)=myid*2.0;
+  vb(myid*2+1)=myid*2.0+1.0;
 
-  v.compress();
-  v*=2.0;
-  v.update_ghost_values();
+  vb.compress(VectorOperation::insert);
+  vb*=2.0;
+  v=vb;
+                                  //v.update_ghost_values();
   
   
                                   // check local values

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.