From 6431b8bebe12db1a678ee3f207b983faaac67101 Mon Sep 17 00:00:00 2001 From: Daniels Date: Tue, 24 Dec 2024 11:36:33 +0100 Subject: [PATCH] quick fix iterator bounds --- Adapter.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Adapter.C b/Adapter.C index 416d715a..f5ec1bf8 100644 --- a/Adapter.C +++ b/Adapter.C @@ -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.")); \