From 52f5a33f78cc19b6b6e2e9aae34a0e912be3df1f Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 4 Feb 2015 21:39:46 -0600 Subject: [PATCH] Fix up places where we use Point for directions when we should be using Tensor<1,dim>. --- source/grid/tria_accessor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.39.5