From: Denis Davydov Date: Tue, 29 Mar 2016 21:25:56 +0000 (+0200) Subject: cleanup mpi/ghost_02 X-Git-Tag: v8.5.0-rc1~1153^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffebfb4b3e8b3094b79d11d892a5b35bfc6471f3;p=dealii.git cleanup mpi/ghost_02 --- diff --git a/tests/mpi/ghost_02.cc b/tests/mpi/ghost_02.cc index eaa877b5c6..d4a54ad23e 100644 --- a/tests/mpi/ghost_02.cc +++ b/tests/mpi/ghost_02.cc @@ -46,10 +46,7 @@ void test () PETScWrappers::MPI::Vector v(local_active, local_relevant, MPI_COMM_WORLD); PETScWrappers::MPI::Vector v2(local_active, local_relevant, MPI_COMM_WORLD); - PetscScalar a = 1.5; - PetscScalar b = myid*2.0; - PetscScalar c = myid*2.0+1.0; - vb = a; + vb = 1.5; v2 = vb; if (Utilities::MPI::this_mpi_process (MPI_COMM_WORLD) == 0) deallog << "ghost: " << get_real_assert_zero_imag(v2(1)) << std::endl; @@ -58,8 +55,8 @@ void test () Assert(get_real_assert_zero_imag(v2(myid*2+1)) == 1.5, ExcInternalError()); // set local values - vb(myid*2)=b; - vb(myid*2+1)=c; + vb(myid*2)=myid*2.0; + vb(myid*2+1)=myid*2.0+1.0; vb.compress(VectorOperation::insert); vb*=2.0;