Skip to content

Commit

Permalink
correction of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rveltz committed Sep 1, 2024
1 parent 0e43366 commit ac79bbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions test/simple_continuation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,14 @@ BK._getvectortype(prob)
show(prob)

br0 = @time continuation(prob, PALC(), opts)
plot(br0)
br0 = @time continuation(prob,
BK.AutoSwitch(
alg = PALC(tangent = Bordered()),
tol_param = 0.45,
),
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)
Expand Down
6 changes: 3 additions & 3 deletions test/test_newton.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac79bbf

Please sign in to comment.