]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid using fabs for std::complex 10026/head
authorDaniel Arndt <arndtd@ornl.gov>
Sun, 3 May 2020 14:58:33 +0000 (10:58 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Sun, 3 May 2020 14:59:01 +0000 (10:59 -0400)
tests/umfpack/umfpack_09_complex.cc

index d7ed8028f2a01f808c3d5d905fb635bc54cb4d36..1326b7fbc911c05c33e1ec59120e9e2fbebc2669 100644 (file)
@@ -141,7 +141,7 @@ test()
                                  1 + i +
                                    i * (j + 1) * (j + 1)); // imaginary part
           solution(j) *=
-            1. * (j + j * (i + 1) * (i + 1)) / std::fabs(solution(j));
+            1. * (j + j * (i + 1) * (i + 1)) / std::abs(solution(j));
         }
 
       // Then choose as rhs for the linear system the vector

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.