Skip to content

Commit b0b44e4

Browse files
committed
Update of manual and test.
1 parent 184f7a7 commit b0b44e4

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

doc/latexuguide/elements.tex

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,26 +1810,32 @@ \section{Change of reference system}
18101810
be referred to the new coordinate system where both translations and
18111811
rotations are applied.
18121812

1813-
18141813
\section{SixTrack Marker}
18151814

18161815
\madbox{
18171816
label: SIXMARKER, \= ELTYPE=real, ATTR=\{real, \ldots \}, \\
18181817
\> F3STRING=string, F3VECTOR=\{real, \ldots \} ;
18191818
}
1820-
f3string="NEW ELEMENT {newline} {0}, {1} {newline}NEXT"
1821-
The \texttt{SIXMARKER} element allows the definition of an arbitrary marker that is converted to SixTrack.
1822-
The element has no impact in MAD-X.
1819+
The \texttt{SIXMARKER} element allows the definition of a marker that is converted to SixTrack.
1820+
The element has no effect in MAD-X.
18231821
\begin{madlist}
18241822
\ttitem{ELTYPE} is the element type number in SixTrack, converted to the first column in fc.2.
18251823
\ttitem{ATTR} This defines the remaining columns of the fc.2 file.
18261824
\ttitem{F3STRING} Defines the String that is written to the fc.3 file, \{newline\} creates a new line in the output
1827-
and \{0\}\ldots\{10\} are being replaced with the values in F3VECTOR.
1828-
\ttitem{F3VECTOR} The values defined will be converted to the location defined in the F3STRING.
1825+
and \{0\}\ldots\{10\} are being replaced with the values in \texttt{F3VECTOR}.
1826+
\ttitem{F3VECTOR} The values defined will be converted to the location defined in the \texttt{F3STRING}.
18291827
\end{madlist}
1830-
18311828
\textbf{Example:}
18321829
\madxmp{
1833-
DR1: \= DRIFT, \= L=1.5; \\
1834-
DR2: \> DRIFT, \> L=DR1->L;
1830+
sm1:SIXMARKER, ELTYPE=2, ATTR=\{0.1,2,3,4,5,6,7\}, \\
1831+
,F3STRING="NEW\_ELEMENT \{newline\} \{0\}, \{1\} \{newline\} NEXT",\\
1832+
F3VECTOR=\{0.2, 0.5\};\\
18351833
}
1834+
Will produce in the output file fc.3:
1835+
\madxmp{
1836+
NEW\_ELEMENT \\
1837+
2.00000000e-01, 5.00000000e-01 \\
1838+
NEXT
1839+
}
1840+
1841+
%%% END

tests/test-c6t-7/test-c6t-7.ref

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

22
++++++++++++++++++++++++++++++++++++++++++++
3-
+ MAD-X 5.05.02 (64 bit, Linux) +
3+
+ MAD-X 5.06.00 (64 bit, Linux) +
44
+ Support: [email protected], http://cern.ch/mad +
5-
+ Release date: 2019.07.25 +
6-
+ Execution date: 2020.07.29 11:40:44 +
5+
+ Release date: 2020.08.13 +
6+
+ Execution date: 2020.08.12 09:18:15 +
77
++++++++++++++++++++++++++++++++++++++++++++
88
circum=10;
99

1010

1111

12-
sm1:sixmarker, eltype=2, attr={0.1,2,3,4,5,6,7}, f3string="NEW ELEMENT {newline} {0}, {1} {newline}NEXT", f3vector={0.2, 0.5};
12+
sm1:SIXMARKER, eltype=2, attr={0.1,2,3,4,5,6,7}, f3string="NEW_ELEMENT {newline} {0}, {1} {newline}NEXT", f3vector={0.2, 0.5};
1313

1414
m1: multipole, knl={0, 0.2};
1515

@@ -26,7 +26,7 @@ parameter: polarity double value: 0
2626
parameter: tilt double value: 0
2727
parameter: lrad double value: 0
2828
parameter: magnet integer: 0
29-
parameter: f3string string: NEW ELEMENT {newline} {0}, {1} {newline}NEXT
29+
parameter: f3string string: NEW_ELEMENT {newline} {0}, {1} {newline}NEXT
3030
parameter: f3vector double array: 2.000000e-01 5.000000e-01
3131
parameter: eltype integer: 2
3232
parameter: attr double array: 1.000000e-01 2.000000e+00 3.000000e+00 4.000000e+00 5.000000e+00 6.000000e+00 7.000000e+00
@@ -77,7 +77,7 @@ parameter: polarity double value: 0
7777
parameter: tilt double value: 0
7878
parameter: lrad double value: 0
7979
parameter: magnet integer: 0
80-
parameter: f3string string: NEW ELEMENT {newline} {0}, {1} {newline}NEXT
80+
parameter: f3string string: NEW_ELEMENT {newline} {0}, {1} {newline}NEXT
8181
parameter: f3vector double array: 2.000000e-01 5.000000e-01
8282
parameter: eltype integer: 2
8383
parameter: attr double array: 1.000000e-01 2.000000e+00 3.000000e+00 4.000000e+00 5.000000e+00 6.000000e+00 7.000000e+00

0 commit comments

Comments
 (0)