Skip to content

Commit 891331b

Browse files
committed
Merge branch 'dev' of github.com:MethodicalAcceleratorDesign/MAD into dev
2 parents efa49ea + c15604b commit 891331b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/mad_dynmap.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,13 +1509,13 @@ inline void rfcav_fringe (cflw<M> &m, num_t lw)
15091509

15101510
// --- tilt & misalignment ---
15111511
void mad_trk_tilt_r (mflw_t *m, num_t lw) {
1512-
srotation<par_t>(m->rflw, lw, m->rflw.tlt);
1512+
srotation<par_t>(m->rflw, lw*m->rflw.sdir, m->rflw.tlt);
15131513
}
15141514
void mad_trk_tilt_t (mflw_t *m, num_t lw) {
1515-
srotation<map_t>(m->tflw, lw, m->tflw.tlt);
1515+
srotation<map_t>(m->tflw, lw*m->tflw.sdir, m->tflw.tlt);
15161516
}
15171517
void mad_trk_tilt_p (mflw_t *m, num_t lw) {
1518-
srotation<prm_t>(m->pflw, lw, tpsa_ref(m->pflw.tlt));
1518+
srotation<prm_t>(m->pflw, lw*m->pflw.sdir, tpsa_ref(m->pflw.tlt));
15191519
}
15201520

15211521
void mad_trk_misalign_r (mflw_t *m, num_t lw) {

src/madl_etrck.mad

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ local function track_drift (elm, m)
758758
local inter = m.implicit and thickonly or driftonly
759759
trackone(elm, m, inter, strex_drift)
760760
else
761-
local inter = l >= minlen and thickonly or driftonly
761+
local inter = m.el >= minlen and thickonly or driftonly
762762
local track = #elm == 0 and trackelm or tracksub
763763
track(elm, m, inter, strex_drift, fnil, fnil)
764764
end

0 commit comments

Comments
 (0)