In order to make matching much more flexible, the USE command has been removed. In MAD-8 the example
USE,PERIOD=LINE1 BEAM,... SURVEY TWISS TRACK ... ENDTRACKallows only the use of one beam line at a time. In MAD-9, the equivalent commands are:
BEAM1:BEAM,... SU1:SURVEY,LINE=LINE1; TW1:TWISS,LINE=LINE1,BEAM=BEAM1; TR1:TRACK,LINE=LINE1,BEAM=BEAM1; ... ENDTRACKThe labels on the SURVEY, TWISS, and TRACK commands are optional, but they may be referred to in matching. The following should be noted:
UNNAMED_BEAM:BEAM,PARTICLE=PROTON,PC=1,EX=1,EY=1,ET=1;
table-name@place->column-nameTo avoid re-computation of a table which does not change during matching, declare it as STATIC.