From c7578bb6fcfc4ec3f49d52f92e19544b8d24dd8f Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 4 Feb 2015 21:38:44 -0600 Subject: [PATCH] Fix up places where we use Point for directions when we should be using Tensor<1,dim>. --- source/base/quadrature_lib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/base/quadrature_lib.cc b/source/base/quadrature_lib.cc index dde1f1b9fa..102d7b7fbb 100644 --- a/source/base/quadrature_lib.cc +++ b/source/base/quadrature_lib.cc @@ -786,7 +786,7 @@ unsigned int QGaussOneOverR<2>::quad_size(const Point<2> singularity, if ( ( std::abs(singularity[i] ) < eps ) || ( std::abs(singularity[i]-1) < eps ) ) on_edge = true; - if (on_edge && (std::abs( (singularity-Point<2>(.5, .5)).square()-.5) + if (on_edge && (std::abs( (singularity-Point<2>(.5, .5)).norm_square()-.5) < eps) ) on_vertex = true; if (on_vertex) return (2*n*n); -- 2.39.5