From ffebfb4b3e8b3094b79d11d892a5b35bfc6471f3 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Tue, 29 Mar 2016 23:25:56 +0200 Subject: [PATCH] cleanup mpi/ghost_02 --- tests/mpi/ghost_02.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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; -- 2.39.5