]> https://gitweb.dealii.org/ - dealii.git/commitdiff
ugly fix of PETSc complex l1_norm()
authorDenis Davydov <davydden@gmail.com>
Fri, 15 Jul 2016 06:16:53 +0000 (08:16 +0200)
committerDenis Davydov <davydden@gmail.com>
Fri, 15 Jul 2016 06:16:53 +0000 (08:16 +0200)
tests/petsc_complex/17.cc

index 408d5b7659480788abe5fd2e41561d10de5521ab..b7313f0559e67e4b481028a93147d023caf9b440 100644 (file)
@@ -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);
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.