From 581a163d9991eff8e2a32c20fb0e0f1b5e10fcd2 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Thu, 6 Sep 2012 09:24:45 +0200 Subject: [PATCH] fixed two bugs concerning looping deploying iterators --- GeoLib/Grid.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GeoLib/Grid.h b/GeoLib/Grid.h index a66283e540b..67201783113 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 -- GitLab