Skip to content

Commit 28c6555

Browse files
committed
Fix: shift_out Position Update
1 parent 17a358a commit 28c6555

22 files changed

+22
-22
lines changed

src/particles/elements/Aperture.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ namespace impactx
114114
}
115115

116116
// undo shift due to alignment errors of the element
117-
shift_out(x, y, px, py);
117+
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
118118
}
119119

120120
/** This pushes the reference particle. */

src/particles/elements/Buncher.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ namespace impactx
108108
pt = ptout;
109109

110110
// undo shift due to alignment errors of the element
111-
shift_out(x, y, px, py);
111+
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
112112
}
113113

114114
/** This pushes the reference particle. */

src/particles/elements/CFbend.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ namespace impactx
167167
pt = ptout;
168168

169169
// undo shift due to alignment errors of the element
170-
shift_out(x, y, px, py);
170+
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
171171
}
172172

173173
/** This pushes the reference particle.

src/particles/elements/ChrDrift.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ namespace impactx
122122
pt = ptout;
123123

124124
// undo shift due to alignment errors of the element
125-
shift_out(x, y, px, py);
125+
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
126126
}
127127

128128
/** This pushes the reference particle.

src/particles/elements/ChrQuad.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ namespace impactx
180180
pt = ptout;
181181

182182
// undo shift due to alignment errors of the element
183-
shift_out(x, y, px, py);
183+
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
184184
}
185185

186186
/** This pushes the reference particle.

src/particles/elements/ChrUniformAcc.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ namespace impactx
167167
pt = pt/bgf;
168168

169169
// undo shift due to alignment errors of the element
170-
shift_out(x, y, px, py);
170+
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
171171
}
172172

173173
/** This pushes the reference particle.

src/particles/elements/ConstF.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ namespace impactx
117117
pt = ptout;
118118

119119
// undo shift due to alignment errors of the element
120-
shift_out(x, y, px, py);
120+
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
121121
}
122122

123123
/** This pushes the reference particle.

src/particles/elements/DipEdge.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ namespace impactx
110110
py = py + R43*y;
111111

112112
// undo shift due to alignment errors of the element
113-
shift_out(x, y, px, py);
113+
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
114114
}
115115

116116
/** This pushes the reference particle. */

src/particles/elements/Drift.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ namespace impactx
108108
pt = ptout;
109109

110110
// undo shift due to alignment errors of the element
111-
shift_out(x, y, px, py);
111+
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
112112
}
113113

114114
/** This pushes the reference particle.

src/particles/elements/ExactDrift.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ namespace impactx
114114
pt = ptout;
115115

116116
// undo shift due to alignment errors of the element
117-
shift_out(x, y, px, py);
117+
shift_out(p.pos(RealAoS::x), p.pos(RealAoS::y), px, py);
118118
}
119119

120120
/** This pushes the reference particle.

0 commit comments

Comments
 (0)