The convergence of the SPH method