diff --git a/GeoLib/Grid.h b/GeoLib/Grid.h index a66283e540b4eb75c78f8a058d67829e2a8276ab..67201783113db566131f01b73b5d53babc94c4a7 100644 --- a/GeoLib/Grid.h +++ b/GeoLib/Grid.h @@ -56,6 +56,7 @@ public: while (it != last) { n_pnts++; this->update(copyOrAddress(*it)->getCoords()); + it++; } double delta[3] = { 0.0, 0.0, 0.0 }; @@ -137,6 +138,7 @@ public: } _grid_cell_nodes_map[i + j * _n_steps[0] + k * n_plane].push_back(copyOrAddress(*it)); + it++; } #ifndef NDEBUG