bifurcationkit / BifurcationKit.jl

A Julia package to perform Bifurcation Analysis
https://bifurcationkit.github.io/BifurcationKitDocs.jl/stable
Other
303 stars 37 forks source link

using `ContinuationPar` directly as input to `bifurcationdiagram` (rather than `(args...) -> opts_br`) #132

Closed TorkelE closed 7 months ago

TorkelE commented 10 months ago

Currently, when I want to provide options to bifurcationdiagram I do something like this:


opts_br = ContinuationPar(dsmin = 0.0001, dsmax = 0.001, ds = 0.0001, max_steps = 10000, p_min = p_span[1], p_max = p_span[2], n_inversion = 4)
bif_dia = bifurcationdiagram(bprob, PALC(), 2, (args...) -> opts_br; bothside = true)

Wouldn't it be neater to simply permit:

bif_dia = bifurcationdiagram(bprob, PALC(), 2, opts_br; bothside = true)

and internally it is converted to the second? There might be some internal reason why this is not possible though?

rveltz commented 10 months ago

Yes it would be good! Ill look into it, I dont think there is anything preventing it

rveltz commented 8 months ago

This should be good on master