aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Carpet/CarpetInterp/src/interp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Carpet/CarpetInterp/src/interp.cc b/Carpet/CarpetInterp/src/interp.cc
index 49e5d1754..fe9b6f734 100644
--- a/Carpet/CarpetInterp/src/interp.cc
+++ b/Carpet/CarpetInterp/src/interp.cc
@@ -446,7 +446,7 @@ namespace CarpetInterp {
totalhomecnts.at(idx) = totalhomecnts.at(idx-1) + allhomecnts.at(idx-1);
}
- vector<int> tmpcnts (allhomecnts.size());
+ vector<int> tmpcnts (allhomecnts.size(), 0);
for (int n = 0; n < N_interp_points; n++) {
int const idx = component_idx
(dstprocs.at(n), source_map.at(n), rlev.at(n), home.at(n));