modified the angle of magnetic field
3D version of output.f90. output the middle of z direction