From 66a559fb0be1d3b2a611b39cc99d057cfd0d0c11 Mon Sep 17 00:00:00 2001 From: Teseo Schneider Date: Wed, 18 Oct 2023 15:37:16 -0700 Subject: [PATCH] less random --- tests/test_nonlinear_solver.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_nonlinear_solver.cpp b/tests/test_nonlinear_solver.cpp index b595806..c44e4be 100644 --- a/tests/test_nonlinear_solver.cpp +++ b/tests/test_nonlinear_solver.cpp @@ -281,6 +281,7 @@ void test_solvers(const std::vector &solvers, const int iters, cons if (exceptions_are_errors) { x.setRandom(); + x /= 10; x += prob->solutions()[0]; } @@ -322,6 +323,7 @@ void test_solvers(const std::vector &solvers, const int iters, cons if (exceptions_are_errors) { x.setRandom(); + x /= 10; x += prob->solutions()[0]; } else