From ac79bbf034975ba821ece1791bab5280c7747adb Mon Sep 17 00:00:00 2001 From: romain veltz Date: Sun, 1 Sep 2024 20:45:43 +0200 Subject: [PATCH] correction of the tests --- test/simple_continuation.jl | 5 +---- test/test_newton.jl | 6 +++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/test/simple_continuation.jl b/test/simple_continuation.jl index 77bf1505..31c0322f 100644 --- a/test/simple_continuation.jl +++ b/test/simple_continuation.jl @@ -102,7 +102,6 @@ BK._getvectortype(prob) show(prob) br0 = @time continuation(prob, PALC(), opts) -plot(br0) br0 = @time continuation(prob, BK.AutoSwitch( alg = PALC(tangent = Bordered()), @@ -110,9 +109,7 @@ br0 = @time continuation(prob, ), ContinuationPar(opts0, max_steps = 47, detect_fold = false, newton_options = NewtonPar(max_iterations = 5), dsmax = 0.051); verbosity = 1) -plot(br0, marker = :d) -# plot!(br0.param, ) - +############### br0 = @time continuation(prob, PALC(), opts; callback_newton = BK.cbMaxNormAndΔp(10,10)) #(6.20 k allocations: 409.469 KiB) BK._getfirstusertype(br0) BK.propertynames(br0) diff --git a/test/test_newton.jl b/test/test_newton.jl index 542f730e..c5cf3dba 100644 --- a/test/test_newton.jl +++ b/test/test_newton.jl @@ -104,9 +104,9 @@ push!(deflationOp, rand(_T,1)) deflationOp[1] @test deflationOp(zeros(_T, 1)) isa _T @test deflationOp(rand(_T, 1), rand(_T, 1)) isa _T -copy(deflationOp) -pop!(deflationOp) -empty!(deflationOp) +_defop = copy(deflationOp) +pop!(_defop) +empty!(_defop) # test of custom distance