18 double dxfac, dyfac, dzfac;
21 dxfac = (xmax -
xmin) / (
double)
x;
22 dyfac = (ymax -
ymin) / (
double)
y;
23 dzfac = (zmax -
zmin) / (
double)
z;
26 for (i = 0; i <
x; i++) {
27 zxa[i] = xmin + (double) (i) * dxfac;
33 for (j = 0; j <
y; j++) {
34 zya[j] = ymin + (double) (j) * dyfac;
40 for (k = 0; k <
z; k++) {
41 zza[k] = zmin + (double) (k) * dzfac;
46 printf(
"Initiate grid done.\n");