From: heister Date: Fri, 15 Feb 2013 05:19:15 +0000 (+0000) Subject: repair test and no longer call update_ghost_values() X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96e4c82f1f8687a91c76e66ea09ae15a2ce51683;p=dealii-svn.git repair test and no longer call update_ghost_values() git-svn-id: https://svn.dealii.org/trunk@28402 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/mpi/ghost_01.cc b/tests/mpi/ghost_01.cc index 637ae4755e..6cc3258d98 100644 --- a/tests/mpi/ghost_01.cc +++ b/tests/mpi/ghost_01.cc @@ -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