From: Jean-Paul Pelteret Date: Tue, 27 Dec 2022 21:46:21 +0000 (+0100) Subject: Fix free function specialisations for ADOL-C types X-Git-Tag: v9.5.0-rc1~703^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=817a514df0b3919c17045cd9e2c77bba0da8d79f;p=dealii.git Fix free function specialisations for ADOL-C types --- diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index d8835971b1..551731a402 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -3054,7 +3054,7 @@ l1_norm(const Tensor<2, dim, adouble> &t) { adouble sum = internal::NumberType::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::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); }