Numerical simulation is used to study the features of Gerchberg-Saxton ;G-S method for measuring wavefront distortion of laser beam propagation through the turbulent atmosphere.The retrieved wavefront error is analyzed and compared with that from Hartmann-Shack wavefront sensor.