From: Luca Heltai Date: Thu, 14 May 2015 20:01:52 +0000 (+0200) Subject: Fixed Wolfgang comment X-Git-Tag: v8.3.0-rc1~170^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6be9ccc49e050d4c581ec7091edcb8345a39a4b6;p=dealii.git Fixed Wolfgang comment --- diff --git a/source/opencascade/boundary_lib.cc b/source/opencascade/boundary_lib.cc index 76580f41bc..4ac09a0706 100644 --- a/source/opencascade/boundary_lib.cc +++ b/source/opencascade/boundary_lib.cc @@ -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)); }