From: Wolfgang Bangerth Date: Fri, 6 Feb 2015 03:16:47 +0000 (-0600) Subject: Either make implicit casts from Tensor<1,dim> to Point explicit, or correct... X-Git-Tag: v8.3.0-rc1~492^2~10 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d5e5b0e65ad40334e0abb38b5ec24d193990bc7;p=dealii.git Either make implicit casts from Tensor<1,dim> to Point explicit, or correct the data type of where we store the result. --- diff --git a/include/deal.II/grid/tria_accessor.templates.h b/include/deal.II/grid/tria_accessor.templates.h index 1ece3ad6ab..56402dc896 100644 --- a/include/deal.II/grid/tria_accessor.templates.h +++ b/include/deal.II/grid/tria_accessor.templates.h @@ -2060,11 +2060,11 @@ is_translation_of (const TriaIterator > &o) // times the distance between the zeroth // vertices here. bool is_translation = true; - const Point dist = o->vertex(0) - this->vertex(0); + const Tensor<1,spacedim> dist = o->vertex(0) - this->vertex(0); const double tol_square = 1e-24 * dist.norm_square(); for (unsigned int i=1; i::vertices_per_cell; ++i) { - const Point dist_new = (o->vertex(i) - this->vertex(i)) - dist; + const Tensor<1,spacedim> dist_new = (o->vertex(i) - this->vertex(i)) - dist; if (dist_new.norm_square() > tol_square) { is_translation = false;