aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-02-29 23:55:01 -0600
committerErik Schnetter <schnetter@cct.lsu.edu>2008-02-29 23:55:01 -0600
commit1686661d56d3dc7098887374660c16a58fc33580 (patch)
treeced02b84fe0cb98dcdeb453947725e5374286823 /Carpet
parente690bb6fb2ef027f20b542eb93a3fce645115a80 (diff)
Count synchronised groups slightly more efficiently when synchronising
Diffstat (limited to 'Carpet')
-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) {