]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix up places where we use Point<dim> for directions when we should be
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 5 Feb 2015 03:39:46 +0000 (21:39 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 5 Feb 2015 03:39:46 +0000 (21:39 -0600)
using Tensor<1,dim>.

source/grid/tria_accessor.cc

index 0da05a765f67a3613f1d216ef0e17e611728fe7a..4183364808443473836cdaf41eaef300812eddbe 100644 (file)
@@ -903,7 +903,7 @@ namespace
   {
     // remember that we use (dim-)linear
     // mappings
-    return std::sqrt((accessor.vertex(1)-accessor.vertex(0)).square());
+    return (accessor.vertex(1)-accessor.vertex(0)).norm();
   }
 
 

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.