From bde4db9425c85f419b704000df8f180c6dfef5bf Mon Sep 17 00:00:00 2001 From: SAM COX Date: Mon, 27 Jun 2016 22:47:44 -0700 Subject: [PATCH] Two tensors in measure() changed to const. --- source/grid/tria_accessor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/grid/tria_accessor.cc b/source/grid/tria_accessor.cc index a4ada476cd..594fede818 100644 --- a/source/grid/tria_accessor.cc +++ b/source/grid/tria_accessor.cc @@ -981,7 +981,7 @@ namespace const Tensor<1,3> v01 = accessor.vertex(1) - accessor.vertex(0); const Tensor<1,3> v02 = accessor.vertex(2) - accessor.vertex(0); - Tensor<1,3> normal = cross_product_3d(v01, v02); + const Tensor<1,3> normal = cross_product_3d(v01, v02); const Tensor<1,3> v03 = accessor.vertex(3) - accessor.vertex(0); @@ -1003,7 +1003,7 @@ namespace // the face is planar. then its area is 1/2 of the norm of the // cross product of the two diagonals const Tensor<1,3> v12 = accessor.vertex(2) - accessor.vertex(1); - Tensor<1,3> twice_area = cross_product_3d(v03, v12); + const Tensor<1,3> twice_area = cross_product_3d(v03, v12); return 0.5 * twice_area.norm(); } -- 2.39.5