]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fixed bug in opencascade/boundary_lib.cc causing three failed tests in the release...
authorAndrea Mola <mola.andrea@gmail.com>
Thu, 14 May 2015 10:57:45 +0000 (12:57 +0200)
committerAndrea Mola <mola.andrea@gmail.com>
Thu, 14 May 2015 11:25:35 +0000 (13:25 +0200)
source/opencascade/boundary_lib.cc

index 32b0f433dabe277e63703f2d4273bb8ab95c24be..76580f41bc74ba6f9f413d63fbc7b4a117e5f4f7 100644 (file)
@@ -44,7 +44,7 @@ namespace OpenCASCADE
 
 
 
-    // Helper internal functions.
+// Helper internal functions.
     double shape_length(const TopoDS_Shape &sh)
     {
       Handle_Adaptor3d_HCurve adapt = curve_adaptor(sh);
@@ -233,13 +233,13 @@ namespace OpenCASCADE
   ArclengthProjectionLineManifold<dim,spacedim>::pull_back(const Point<spacedim> &space_point) const
   {
     double t (0.0);
-#ifdef DEBUG
     ShapeAnalysis_Curve curve_analysis;
     gp_Pnt proj;
-    Assert(curve_analysis.Project(curve->GetCurve(), point(space_point), tolerance, proj, t, true)
-           < tolerance*length, ExcPointNotOnManifold(space_point));
+#ifdef DEBUG
+    Assert(curve_analysis.Project(curve->GetCurve(), point(space_point), tolerance, proj, t, true) <
+           tolerance*length, ExcPointNotOnManifold(space_point));
 #else
-    (void)space_point;
+    curve_analysis.Project(curve->GetCurve(), point(space_point), tolerance, proj, t, true);
 #endif
     return Point<1>(GCPnts_AbscissaPoint::Length(curve->GetCurve(),curve->GetCurve().FirstParameter(),t));
   }
@@ -256,7 +256,7 @@ namespace OpenCASCADE
   }
 
 
-  // Explicit instantiations
+// Explicit instantiations
 #include "boundary_lib.inst"
 
 } // end namespace OpenCASCADE

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.