bmad-sim / GTPSA.jl

Julia interface to the Generalised Truncated Power Series Algebra (GTPSA) library

Home Page:https://bmad-sim.github.io/GTPSA.jl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vars(d) throws error

DavidSagan opened this issue · comments

The documentation says that vars() should work but it does not:

julia> x = vars()
ERROR: MethodError: no method matching vars()

But x = vars(::Descriptor) does work

I am not seeing this bug on the current stable release (v0.2.1) or the most recent dev version

Sorry I did not update properly. Now vars() works but:

julia> x = vars(d)
ERROR: MethodError: no method matching vars(::Descriptor)

Should this not work?

Also what is the status of the default descriptor?

Yes, this is a new change. For consistency with the rest of the constructors TPS/ComplexTPS/mono, it is now a kwarg use so

x = vars(use=d)

use could also be a TPS or ComplexTPS. Tomorrow I will push a new stable release with docs updated and many bug fixes I found

OK I wait.

I also found a C bug in cutord that leads to silent memory corruption, this was reported upstream to Laurent but my push tomorrow has a barrier to prevent this from happening.

There is a global GTPSA.desc_current that is set every time the user creates a new Descriptor, but could also be set manually. This I believe is documented

v0.2.2 incoming now...