From: Denis Davydov Date: Mon, 28 Mar 2016 20:30:24 +0000 (+0200) Subject: extend tests/mpi/petsc_distribute_01.cc to complex-valued PETSc X-Git-Tag: v8.5.0-rc1~1153^2~36 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9592d3cb78703cfc6c4dc43bc711725bd0610dd3;p=dealii.git extend tests/mpi/petsc_distribute_01.cc to complex-valued PETSc --- 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