From 1782d731da185c607a3add2d1321bce662403b62 Mon Sep 17 00:00:00 2001 From: logari81 Date: Fri, 11 Nov 2011 21:27:53 +0000 Subject: [PATCH] + fix a bug in the fallback solvers mechanism git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5119 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d --- src/Mod/Sketcher/App/Sketch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Sketcher/App/Sketch.cpp b/src/Mod/Sketcher/App/Sketch.cpp index 54c53a07d..5dbbc759b 100644 --- a/src/Mod/Sketcher/App/Sketch.cpp +++ b/src/Mod/Sketcher/App/Sketch.cpp @@ -1308,19 +1308,19 @@ int Sketch::solve() { // solving with freegcs // (either with SQP solver for two subsystems or // with the default DogLeg solver for a single subsystem) - int ret = GCSsys.solve(GCS::DogLeg); + int ret = GCSsys.solve(true, GCS::DogLeg); if (ret != GCS::Success && !isInitMove) { // if we are not in dragging mode and the solver fails we try // alternative solvers - ret = GCSsys.solve(GCS::BFGS); + ret = GCSsys.solve(true, GCS::BFGS); if (ret == GCS::Success) { Base::Console().Warning("Important: the BFGS solver succeeded where the DogLeg solver had failed.\n"); Base::Console().Warning("If you see this message please report a way of reproducing this result at\n"); Base::Console().Warning("https://sourceforge.net/apps/mantisbt/free-cad/main_page.php\n"); } else { - ret = GCSsys.solve(GCS::LevenbergMarquardt); + ret = GCSsys.solve(true, GCS::LevenbergMarquardt); if (ret == GCS::Success) { Base::Console().Warning("Important: the LevenbergMarquardt solver succeeded where the DogLeg and BFGS solvers have failed.\n"); Base::Console().Warning("If you see this message please report a way of reproducing this result at\n");