FUNCTION rad2deg(x) REAL(rp), INTENT(IN) :: x REAL(rp) :: rad2deg rad2deg = x*180.0_rp/C_PI END FUNCTION rad2deg