Modification of interdendritic convection in directional solidification by a uniform magnetic field