diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-02-19 05:26:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-02-19 05:26:00 +0000 |
commit | 176973d02a9bf8cf6590b445d843f2bff1d02ec5 (patch) | |
tree | 932876f12b4e576e48d24d360aa67dfcd8331242 /Carpet | |
parent | 6816acbe19aa56b33e8edc296a13860b606ba564 (diff) |
CarpetInterp: Initialise tmpcnts correctly
darcs-hash:20080219052607-dae7b-0570bfe61b23dc8033521993802c7fe6adcb8b05.gz
Diffstat (limited to 'Carpet')
-rw-r--r-- | Carpet/CarpetInterp/src/interp.cc | 2 |
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)); |