From 9592d3cb78703cfc6c4dc43bc711725bd0610dd3 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Mon, 28 Mar 2016 22:30:24 +0200 Subject: [PATCH] extend tests/mpi/petsc_distribute_01.cc to complex-valued PETSc --- tests/mpi/petsc_distribute_01.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/mpi/petsc_distribute_01.cc b/tests/mpi/petsc_distribute_01.cc index 5ecc909337..38c0120a16 100644 --- a/tests/mpi/petsc_distribute_01.cc +++ b/tests/mpi/petsc_distribute_01.cc @@ -99,11 +99,11 @@ void test() // verify correctness if (myid != 0) - AssertThrow (vec(vec.local_range().first+10) == vec.local_range().first-25, + AssertThrow (PetscRealPart(vec(vec.local_range().first+10)) == vec.local_range().first-25, ExcInternalError()); if (myid != n_processes-1) - AssertThrow (vec(vec.local_range().first+90) == vec.local_range().first+105, + AssertThrow (PetscRealPart(vec(vec.local_range().first+90)) == vec.local_range().first+105, ExcInternalError()); for (unsigned int i=vec.local_range().first; i