Skip to content

Commit

Permalink
quick fix iterator bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
vidulejs committed Dec 24, 2024
1 parent 766f6f7 commit 6431b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Adapter.C
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ void preciceAdapter::Adapter::pruneCheckpointedFields()
if (!toRemoveIndices.empty()) \
{ \
/* Iterate in reverse to avoid index shifting */ \
for (auto it = toRemoveIndices.rbegin(); it < toRemoveIndices.rend(); ++it) \
for (auto it = toRemoveIndices.rbegin(); it != toRemoveIndices.rend(); ++it) \
{ \
index = *it; \
DEBUG(adapterInfo("Removed " #GeomFieldType " : " + GeomFieldCopies_.at(index)->name() + " from the checkpointed fields list.")); \
Expand Down

0 comments on commit 6431b8b

Please sign in to comment.