This conversion of dimad to standard input was accomplished by taking the input subroutines from the program MAD [4] and making from these routines (with modifications) an input interface for dimad. One exception to the standard format is the units conventions.
Input to dimad can be in either transport units (indicated by the keyword "utransport"), or in standard units (indicated by the keyword "ustandard"). For more information on units, see the next section.
The second difference between dimad and the standard is the addition of several keywords for dimad. The added keywords are "quadsext", "gkick", and "mtwiss." These elements are described more fully later. Also, in dimad, the solenoid can have a quadrupole field. Elements which are described in [2] [3] but which are not implemented in dimad are separator and rbend.
The job title entered on a line following one with the keyword "title."
This can be followed with a units keyword. If no units keyword is found, the units are assumed to be the standard units.