From 23ef39e6e352fb5402e5af095eb8854c6aa6cf7f Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Fri, 15 Jul 2016 08:16:53 +0200 Subject: [PATCH] ugly fix of PETSc complex l1_norm() --- tests/petsc_complex/17.cc | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.5