grdgravmag3d(1) Compute the gravity effect of a grid by the method of Okabe