-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix 178 precompilation makie #179
Fix 178 precompilation makie #179
Conversation
Wow!!! Thank you a lot for your work. I am testing it and so far it works well. The only thing is the following. This seems to error using Revise, GLMakie, LinearAlgebra, BifurcationKit
k = 2
N = 1
F(x, p) = @. p * x + x^(k+1)/(k+1) + 0.01
Jac_m(x, p) = diagm(0 => p .+ x.^k)
# bifurcation problem
prob = BifurcationProblem(F, [0.], 0.5, (@optic _), J = Jac_m)
# continuation options
opts = BK.ContinuationPar(ds=0.001, max_steps = 140, newton_options = NewtonPar(tol = 1e-8))
# algorithm
alg = DefCont(deflation_operator = DeflationOperator(2, .001, [[0.]]), perturb_solution = (x,p,id) -> (x .+ 0.1 .* rand(length(x))))
brdc = continuation(prob, alg,
ContinuationPar(opts, ds = -0.001, max_steps = 800, newton_options = NewtonPar(verbose = false, max_iterations = 6), plot_every_step = 40),
;
plot=true,
callback_newton = BK.cbMaxNorm(1e3) # reject newton step if residual too large
) because
|
I think I met the same problem, did you try with |
There is one major issue with this interface: you never have |
Ah yes, my bad, it's a typo, I targeted |
I corrected the change in a previous commit. As |
I solved that in the last commit by triggering an update with |
Great work! Thank you. |
Attemp at fixing precompilation issues due to Makie usage. See #178