From: Martin Kronbichler Date: Thu, 25 Jun 2015 12:40:35 +0000 (+0200) Subject: Minor cleanup to make function work with VectorizedArray X-Git-Tag: v8.3.0-rc1~93^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a583872edddc910e37c461b229ec5123137428d;p=dealii.git Minor cleanup to make function work with VectorizedArray --- diff --git a/include/deal.II/base/point.h b/include/deal.II/base/point.h index 2a102430c4..51bb6e441c 100644 --- a/include/deal.II/base/point.h +++ b/include/deal.II/base/point.h @@ -430,10 +430,10 @@ inline Number Point::distance (const Point &p) const { - Number sum=0; + Number sum = Number(); for (unsigned int i=0; ivalues[i]-p(i); + const Number diff=this->values[i]-p(i); sum += diff*diff; }