]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix free function specialisations for ADOL-C types
authorJean-Paul Pelteret <jppelteret@gmail.com>
Tue, 27 Dec 2022 21:46:21 +0000 (22:46 +0100)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Tue, 27 Dec 2022 21:46:33 +0000 (22:46 +0100)
include/deal.II/base/tensor.h

index d8835971b11b20636f9dae32bcb51fb234f3afba..551731a4028168cf6deca249bc351281a15cb51b 100644 (file)
@@ -3054,7 +3054,7 @@ l1_norm(const Tensor<2, dim, adouble> &t)
     {
       adouble sum = internal::NumberType<adouble>::value(0.0);
       for (unsigned int i = 0; i < dim; ++i)
-        sum += std::fabs(t[i][j]);
+        sum += fabs(t[i][j]);
 
       condassign(max, (sum > max), sum, max);
     }
@@ -3072,7 +3072,7 @@ linfty_norm(const Tensor<2, dim, adouble> &t)
     {
       adouble sum = internal::NumberType<adouble>::value(0.0);
       for (unsigned int j = 0; j < dim; ++j)
-        sum += std::fabs(t[i][j]);
+        sum += fabs(t[i][j]);
 
       condassign(max, (sum > max), sum, max);
     }

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.