Skip to main content
. Author manuscript; available in PMC: 2019 Jun 30.
Published in final edited form as: Computation (Basel). 2018 Nov 14;6(4):58. doi: 10.3390/computation6040058
2D specific: 3D specific:
{ {
GrGrid& g = _grid.getGrid(); GrGrid& g = _grid.getGrid();
Pos p; Pos p;
Pos dim = g.getRange(); Pos dim = g.getRange();
for (p.x = 0; p.x<dim.x; p.x++) for (p.x = 0; p.x<dim.x; p.x++)
{ {
for (p.y = 0; p.y<dim.y; p.y++) for (p.y = 0; p.y<dim.y; p.y++)
{ {
g.nCells(p) = g.getCellDensity(p); for (p.z = 0; p.z<dim.z; p.z++)
}}} {
g.nCells(p) = g.getCellDensity(p);
}}}}