Skip to content

Commit e14a8e3

Browse files
committed
Added scaling of transverse coordinates in update_p0c
1 parent 115bc35 commit e14a8e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xtrack/particles/particles.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,9 @@ def gen_local_particle_api(mode='no_local_copy'):
386386
387387
LocalParticle_update_delta(part, new_delta);
388388
389+
LocalParticle_scale_px(part, old_p0c/new_p0c_value);
390+
LocalParticle_scale_py(part, old_p0c/new_p0c_value);
391+
389392
}
390393
'''
391394

0 commit comments

Comments
 (0)