From: Jean-Paul Pelteret Date: Wed, 16 Aug 2017 08:57:03 +0000 (-0600) Subject: Generalised tensor linfty_norm() on number type X-Git-Tag: v9.0.0-rc1~1196^2~11 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db9a3475b0a0df05e251a7c725d24294baf9a16e;p=dealii.git Generalised tensor linfty_norm() on number type --- diff --git a/include/deal.II/base/tensor.h b/include/deal.II/base/tensor.h index 35037bd3e9..a52f0720b5 100644 --- a/include/deal.II/base/tensor.h +++ b/include/deal.II/base/tensor.h @@ -2033,13 +2033,13 @@ l1_norm (const Tensor<2,dim,Number> &t) */ template inline -double +Number linfty_norm (const Tensor<2,dim,Number> &t) { - double max = 0; + Number max = internal::NumberType::value(0.0); for (unsigned int i=0; i::value(0.0); for (unsigned int j=0; j