]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fixed Wolfgang comment
authorLuca Heltai <luca.heltai@sissa.it>
Thu, 14 May 2015 20:01:52 +0000 (22:01 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Thu, 14 May 2015 20:01:52 +0000 (22:01 +0200)
source/opencascade/boundary_lib.cc

index 76580f41bc74ba6f9f413d63fbc7b4a117e5f4f7..4ac09a0706fc4a2b6d7d2a53beb247d163ff57d8 100644 (file)
@@ -235,12 +235,9 @@ namespace OpenCASCADE
     double t (0.0);
     ShapeAnalysis_Curve curve_analysis;
     gp_Pnt proj;
-#ifdef DEBUG
-    Assert(curve_analysis.Project(curve->GetCurve(), point(space_point), tolerance, proj, t, true) <
-           tolerance*length, ExcPointNotOnManifold(space_point));
-#else
-    curve_analysis.Project(curve->GetCurve(), point(space_point), tolerance, proj, t, true);
-#endif
+    double dist = curve_analysis.Project(curve->GetCurve(), point(space_point), tolerance, proj, t, true);
+    Assert(dist < tolerance*length, ExcPointNotOnManifold(space_point));
+    dist *= 2; // Silence compiler warning in Release mode.
     return Point<1>(GCPnts_AbscissaPoint::Length(curve->GetCurve(),curve->GetCurve().FirstParameter(),t));
   }
 

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.