From: Wolfgang Bangerth Date: Thu, 5 Feb 2015 03:39:46 +0000 (-0600) Subject: Fix up places where we use Point for directions when we should be X-Git-Tag: v8.3.0-rc1~494^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52f5a33f78cc19b6b6e2e9aae34a0e912be3df1f;p=dealii.git Fix up places where we use Point for directions when we should be using Tensor<1,dim>. --- diff --git a/source/grid/tria_accessor.cc b/source/grid/tria_accessor.cc index 0da05a765f..4183364808 100644 --- a/source/grid/tria_accessor.cc +++ b/source/grid/tria_accessor.cc @@ -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(); }