Skip to content

Commit d4b7e45

Browse files
committed
Removed scale_zeta from update_delta
1 parent f7384ff commit d4b7e45

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

xtrack/beam_elements/elements_src/lineartransfermatrix.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,8 @@ void LinearTransferMatrix_track_local_particle(LinearTransferMatrixData el, Loca
104104
new_zeta = cos_s*tmp+beta_s*sin_s*new_delta;
105105
new_delta = -sin_s*tmp/beta_s+cos_s*new_delta;
106106

107-
// We need to set zeta after updating delta
108-
// not to introduce an artificial change
109-
LocalParticle_update_delta(part, new_delta);
110107
LocalParticle_set_zeta(part, new_zeta);
108+
LocalParticle_update_delta(part, new_delta);
111109
}
112110

113111
// Change energy without change of reference momentume

xtrack/particles/particles.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,6 @@ def gen_local_particle_api(mode='no_local_copy'):
360360
361361
LocalParticle_set_delta(part, new_delta_value);
362362
363-
LocalParticle_scale_zeta(part,
364-
rvv / LocalParticle_get_rvv(part));
365-
366363
LocalParticle_set_rvv(part, rvv );
367364
LocalParticle_set_rpp(part, rpp );
368365
LocalParticle_set_psigma(part, psigma );

0 commit comments

Comments
 (0)