From: Wolfgang Bangerth Date: Thu, 5 Feb 2015 03:38:44 +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~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7578bb6fcfc4ec3f49d52f92e19544b8d24dd8f;p=dealii.git Fix up places where we use Point for directions when we should be using Tensor<1,dim>. --- 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);