]> 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:48 +0000 (21:16 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 9 Feb 2015 23:27:15 +0000 (17:27 -0600)
source/fe/mapping_q1.cc

index 8b2cdb4de94b7c521e7c8ec21e41a29ab9d7d0a6..60738e1000edf4873ab51717e12217a4c23dd35f 100644 (file)
@@ -1039,7 +1039,7 @@ namespace internal
                   }
 
                 if (update_flags & update_normal_vectors)
-                  normal_vectors[i] = boundary_forms[i] / boundary_forms[i].norm();
+                  normal_vectors[i] = Point<spacedim>(boundary_forms[i] / boundary_forms[i].norm());
               }
 
           if (update_flags & update_jacobians)
@@ -1720,10 +1720,10 @@ transform_real_to_unit_cell_internal
 
   compute_shapes(std::vector<Point<dim> > (1, p_unit), mdata);
   Point<spacedim> p_real = transform_unit_to_real_cell_internal(mdata);
-  Point<spacedim> f = p_real-p;
+  Tensor<1,spacedim> f = p_real-p;
 
   // early out if we already have our point
-  if (f.square() < 1e-24 * cell->diameter() * cell->diameter())
+  if (f.norm_square() < 1e-24 * cell->diameter() * cell->diameter())
     return p_unit;
 
   // we need to compare the position of the computed p(x) against the given
@@ -1809,7 +1809,7 @@ transform_real_to_unit_cell_internal
 
           // f(x)
           Point<spacedim> p_real_trial = transform_unit_to_real_cell_internal(mdata);
-          const Point<spacedim> f_trial = p_real_trial-p;
+          const Tensor<1,spacedim> f_trial = p_real_trial-p;
 
 #ifdef DEBUG_TRANSFORM_REAL_TO_UNIT_CELL
           std::cout << "     step_length=" << step_length << std::endl

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.