ESP module source code questions


Click here for full thread
Clicked A Few Times
I have read the "esp_grid.F" file's source code in NWCHEM 6.0. And I want to know what are the meaning of "mgrid", "ngrid", "dble" and "xmin"? Parts of the source code in "esp_grid.F" file is as follow:

c
c determine actual number of grid points
c
     if(me.eq.0) then
rcut2=rcut*rcut
ngrid=1
do 1 iz=0,mgrid(3)+1
do 2 iy=0,mgrid(2)+1
do 3 ix=0,mgrid(1)+1
g(1,ngrid)=xmin(1)-rcut+dble(ix)*spac
g(2,ngrid)=xmin(2)-rcut+dble(iy)*spac
g(3,ngrid)=xmin(3)-rcut+dble(iz)*spac