From 5d5e5b0e65ad40334e0abb38b5ec24d193990bc7 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 5 Feb 2015 21:16:47 -0600 Subject: [PATCH] Either make implicit casts from Tensor<1,dim> to Point explicit, or correct the data type of where we store the result. --- include/deal.II/grid/tria_accessor.templates.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5