Permanent magnets for the return loop of the Cornell-Brookhaven energy recovery linac test accelerator