aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/CallFunction.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Carpet/Carpet/src/CallFunction.cc')
-rw-r--r--Carpet/Carpet/src/CallFunction.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/CallFunction.cc b/Carpet/Carpet/src/CallFunction.cc
index 3d4d5d841..116b3675f 100644
--- a/Carpet/Carpet/src/CallFunction.cc
+++ b/Carpet/Carpet/src/CallFunction.cc
@@ -348,6 +348,7 @@ namespace Carpet {
// remove all empty groups from the list
vector<int> groups;
+ groups.reserve (attribute->n_SyncGroups);
for (int g = 0; g < attribute->n_SyncGroups; g++) {
const int group = attribute->SyncGroups[g];
if (CCTK_NumVarsInGroupI (group) > 0) {