One of important problems to be solved in the development of an intense source of flash X-rays is the choice of the optimum design of the high-current diode at the exit of the electron accelerator. The results of numerical investigations of megaampere relativistic electron beam (REB) generation and focusing in a compound diode are discussed. The diode consists of a vacuum field-emission annular cathode, a planar anode, and a gas cell inserted between the anode foil and the target. (author). 2 figs., 5 refs.