atcollab / at

Accelerator Toolbox
Apache License 2.0
48 stars 31 forks source link

Beam Moments passmethod causes core dump #649

Closed lcarver closed 10 months ago

lcarver commented 10 months ago

Hello,

Lets take a ring (for example full S28F.mat), and use it to generate a fast_ring (called fring).

If I do:

bm = at.BeamMoments('bm')
fring.append(bm)
_ = at.lattice_pass(fring)

then everything works fine. But if I do

bm = at.BeamMoments('bm')
fring.append(bm)
sig = at.sigma_matrix(ring)

I get a core dump.

@swhite2401 believes the issue comes from the recent lattice_track interface. For now, I can avoid the problem by ensuring that the beam moments is appended to the fring right before I track. He is looking into it.

swhite2401 commented 10 months ago

Yes I have found the problem, I am on it.

lcarver commented 10 months ago

Fixed in #650