Skip to content

Commit 22d6f1d

Browse files
ax3lkyrsjo
andauthored
Fix Quad Transport Map w/ Slicing and Zero Fields (#1038)
The linear transport map of the quad, used in envelope tracking mode, did not scale its lengths properly when set to zero field strength and sliced for space charge effects. This fixes it. Author: Kyrre Ness Sjobak <[email protected]> Co-authored-by: Kyrre Ness Sjobak <[email protected]>
1 parent 560de9c commit 22d6f1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/elements/Quad.H

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* This file is part of ImpactX.
66
*
7-
* Authors: Chad Mitchell, Axel Huebl
7+
* Authors: Chad Mitchell, Axel Huebl, Kyrre Ness Sjobak
88
* License: BSD-3-Clause-LBNL
99
*/
1010
#ifndef IMPACTX_QUAD_H
@@ -274,9 +274,9 @@ namespace impactx::elements
274274
R(4,4) = std::cos(omega*slice_ds);
275275
R(5,6) = slice_ds/betgam2;
276276
} else {
277-
R(1,2) = m_slice_ds;
278-
R(3,4) = m_slice_ds;
279-
R(5,6) = m_slice_ds / betgam2;
277+
R(1,2) = slice_ds;
278+
R(3,4) = slice_ds;
279+
R(5,6) = slice_ds / betgam2;
280280
}
281281

282282
return R;

0 commit comments

Comments
 (0)