aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetInterp
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-02-19 05:26:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2008-02-19 05:26:00 +0000
commit6d5870151dbf0db0ecbaf3e70be111131e5d56ea (patch)
tree932876f12b4e576e48d24d360aa67dfcd8331242 /Carpet/CarpetInterp
parent679ccfcacb45d91bc12f34241708350714906c19 (diff)
CarpetInterp: Initialise tmpcnts correctly
darcs-hash:20080219052607-dae7b-0570bfe61b23dc8033521993802c7fe6adcb8b05.gz
Diffstat (limited to 'Carpet/CarpetInterp')
-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));