... | ... | @@ -79,7 +79,8 @@ int ixyz = iz + lNZ*iy + lNZ*lNY*ix; |
|
|
h_densities.density_a[ixyz]; // value of density in center of the box
|
|
|
```
|
|
|
|
|
|
#Iterating over lattice points
|
|
|
# Iterating over lattice points
|
|
|
|
|
|
The following scheme is used to iterate over lattice points.
|
|
|
```c
|
|
|
int lNX=h_densities.nx, lNY=h_densities.ny, lNZ=h_densities.nz; // local sizes
|
... | ... | |