use, beamlinename.This causes the beamline beamlinename to be the current machine for dimad. Next comes the statement
dimatwhich passes control to dimad, after translating the machine into the correct data structures for dimad. Any dimad command can then be issued.
A ';' will cause dimad to stop and return control to the input interface. Now the user can define a new machine and then go back to dimad and do a new calculation, or stop execution with the command stop. The use command causes the old machine to be replaced by a new one. This new machine can be a previously defined beamline. For debugging purposes, the dump command from MAD has been retained. This command produces a dump of the MAD-type data structure describing the machine.
After a ";" and return to MAD control, one can specify the use of a new line , keeping the previously defined (and perhaps modified by dimad) elements.To do so one uses the commands :
use,newlinename newbeamThe last command "newbeam" passes control back to dimad. Observe that without newbeam all the element parameters are redefined to their initial input values. A new MAD command is introduced : EXPLODE .
Its purpose is to provide an explicit description of the beamline used.