]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Either make implicit casts from Tensor<1,dim> to Point<dim> explicit, or correct...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 6 Feb 2015 03:16:47 +0000 (21:16 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 9 Feb 2015 23:27:14 +0000 (17:27 -0600)
include/deal.II/grid/tria_accessor.templates.h

index 1ece3ad6ab7cf96f6f00cb3bf9d48abd8fdee022..56402dc8969d60e18a79e6680145919fa6bc78ec 100644 (file)
@@ -2060,11 +2060,11 @@ is_translation_of (const TriaIterator<TriaAccessor<structdim,dim,spacedim> > &o)
   // times the distance between the zeroth
   // vertices here.
   bool is_translation = true;
-  const Point<spacedim> 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<GeometryInfo<structdim>::vertices_per_cell; ++i)
     {
-      const Point<spacedim> 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;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.