Crossings of potential-energy surfaces in a magnetic field.