]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Further fixes to accommodate new Point vs Tensor distinction. 562/head
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 18 Feb 2015 12:46:37 +0000 (06:46 -0600)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 18 Feb 2015 12:46:37 +0000 (06:46 -0600)
source/opencascade/boundary_lib.cc

index c5b3a3a80bb7570c1ab4aa5a1b146b1c9665d618..ce4873000ad2acf7a8a8fe9fe0a07d4befec5f4c 100644 (file)
@@ -171,19 +171,23 @@ namespace OpenCASCADE
       {
         Tensor<1,3> u = surrounding_points[1]-surrounding_points[0];
         Tensor<1,3> v = surrounding_points[2]-surrounding_points[0];
-        Tensor<1,3> n1(u(1)*v(2)-u(2)*v(1),u(2)*v(0)-u(0)*v(2),u(0)*v(1)-u(1)*v(0));
+       const double n1_coords[3] = {u(1)*v(2)-u(2)*v(1),u(2)*v(0)-u(0)*v(2),u(0)*v(1)-u(1)*v(0)};
+        Tensor<1,3> n1(n1_coords);
         n1 = n1/n1.norm();
         u = surrounding_points[2]-surrounding_points[3];
         v = surrounding_points[1]-surrounding_points[3];
-        Tensor<1,3> n2(u(1)*v(2)-u(2)*v(1),u(2)*v(0)-u(0)*v(2),u(0)*v(1)-u(1)*v(0));
+       const double n2_coords[3] = {u(1)*v(2)-u(2)*v(1),u(2)*v(0)-u(0)*v(2),u(0)*v(1)-u(1)*v(0)};
+        Tensor<1,3> n2(n2_coords);
         n2 = n2/n2.norm();
         u = surrounding_points[4]-surrounding_points[7];
         v = surrounding_points[6]-surrounding_points[7];
-        Point<3> n3(u(1)*v(2)-u(2)*v(1),u(2)*v(0)-u(0)*v(2),u(0)*v(1)-u(1)*v(0));
+       const double n3_coords[3] = {u(1)*v(2)-u(2)*v(1),u(2)*v(0)-u(0)*v(2),u(0)*v(1)-u(1)*v(0)};
+        Tensor<1,3> n3(n3_coords);
         n3 = n3/n3.norm();
         u = surrounding_points[6]-surrounding_points[7];
         v = surrounding_points[5]-surrounding_points[7];
-        Point<3> n4(u(1)*v(2)-u(2)*v(1),u(2)*v(0)-u(0)*v(2),u(0)*v(1)-u(1)*v(0));
+       const double n4_coords[3] = {u(1)*v(2)-u(2)*v(1),u(2)*v(0)-u(0)*v(2),u(0)*v(1)-u(1)*v(0)};
+        Tensor<1,3> n4(n4_coords);
         n4 = n4/n4.norm();
         //for (unsigned int i=0; i<surrounding_points.size(); ++i)
         //    cout<<surrounding_points[i]<<endl;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.