From 6d5870151dbf0db0ecbaf3e70be111131e5d56ea Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 19 Feb 2008 05:26:00 +0000 Subject: CarpetInterp: Initialise tmpcnts correctly darcs-hash:20080219052607-dae7b-0570bfe61b23dc8033521993802c7fe6adcb8b05.gz --- Carpet/CarpetInterp/src/interp.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Carpet/CarpetInterp') 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 tmpcnts (allhomecnts.size()); + vector 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)); -- cgit v1.2.3