Measurement of the polarization of D-D neutrons by a solenoid