From: Andrea Mola Date: Thu, 14 May 2015 10:57:45 +0000 (+0200) Subject: fixed bug in opencascade/boundary_lib.cc causing three failed tests in the release... X-Git-Tag: v8.3.0-rc1~170^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04b01d9c90792736b61949bc7469ca6f8a306a3a;p=dealii.git fixed bug in opencascade/boundary_lib.cc causing three failed tests in the release version of the library --- diff --git a/source/opencascade/boundary_lib.cc b/source/opencascade/boundary_lib.cc index 32b0f433da..76580f41bc 100644 --- a/source/opencascade/boundary_lib.cc +++ b/source/opencascade/boundary_lib.cc @@ -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::pull_back(const Point &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