Skip to content

Commit 78beabe

Browse files
committed
Formatting
1 parent eb3a6ff commit 78beabe

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/NonlinearSolve.jl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,23 @@ import PrecompileTools
4545

4646
PrecompileTools.@compile_workload begin
4747
for T in (Float32, Float64)
48-
# prob = NonlinearProblem{false}((u, p) -> u .* u .- p, T(0.1), T(2))
48+
prob = NonlinearProblem{false}((u, p) -> u .* u .- p, T(0.1), T(2))
4949

50-
# precompile_algs = if VERSION ≥ v"1.7"
51-
# (NewtonRaphson(), TrustRegion(), LevenbergMarquardt())
52-
# else
53-
# (NewtonRaphson(),)
54-
# end
50+
precompile_algs = if VERSION v"1.7"
51+
(NewtonRaphson(), TrustRegion(), LevenbergMarquardt())
52+
else
53+
(NewtonRaphson(),)
54+
end
5555

56-
# for alg in precompile_algs
57-
# solve(prob, alg, abstol = T(1e-2))
58-
# end
56+
for alg in precompile_algs
57+
solve(prob, alg, abstol = T(1e-2))
58+
end
5959

6060
prob = NonlinearProblem{true}((du, u, p) -> du[1] = u[1] * u[1] - p[1], T[0.1],
6161
T[2])
62-
# for alg in precompile_algs
63-
# solve(prob, alg, abstol = T(1e-2))
64-
# end
62+
for alg in precompile_algs
63+
solve(prob, alg, abstol = T(1e-2))
64+
end
6565
end
6666
end
6767

test/basictests.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,10 @@ end
364364
for options in list_of_options
365365
local probN, sol, alg
366366
alg = LevenbergMarquardt(damping_initial = options[1],
367-
damping_increase_factor = options[2],
368-
damping_decrease_factor = options[3],
369-
finite_diff_step_geodesic = options[4], α_geodesic = options[5],
370-
b_uphill = options[6], min_damping_D = options[7])
367+
damping_increase_factor = options[2],
368+
damping_decrease_factor = options[3],
369+
finite_diff_step_geodesic = options[4], α_geodesic = options[5],
370+
b_uphill = options[6], min_damping_D = options[7])
371371

372372
probN = NonlinearProblem{false}(quadratic_f, [1.0, 1.0], 2.0)
373373
sol = solve(probN, alg, abstol = 1e-10)

0 commit comments

Comments
 (0)