From: Denis Davydov Date: Fri, 15 Jul 2016 06:16:53 +0000 (+0200) Subject: ugly fix of PETSc complex l1_norm() X-Git-Tag: v8.5.0-rc1~864^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23ef39e6e352fb5402e5af095eb8854c6aa6cf7f;p=dealii.git ugly fix of PETSc complex l1_norm() --- diff --git a/tests/petsc_complex/17.cc b/tests/petsc_complex/17.cc index 408d5b7659..b7313f0559 100644 --- a/tests/petsc_complex/17.cc +++ b/tests/petsc_complex/17.cc @@ -32,7 +32,11 @@ void test (PETScWrappers::Vector &v) { const PetscScalar s(1.*k,2.*k); v(k) = s; +#if DEAL_II_PETSC_VERSION_LT(3,7,0) + norm += std::fabs (1.*k)+std::fabs(2.*k); +#else norm += std::abs (s); +#endif } v.compress (VectorOperation::insert);