From 3e2aac9e9791759d5263d4edb59bcf8470f570ba Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sat, 1 Mar 2008 18:36:47 -0600 Subject: CarpetInterp: Initialise status and return value buffer to success Initialise the status and return value buffer to success. This handles the case of 0 interpolation points correctly. --- 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 9915814ec..7e1050e3b 100644 --- a/Carpet/CarpetInterp/src/interp.cc +++ b/Carpet/CarpetInterp/src/interp.cc @@ -589,7 +589,7 @@ namespace CarpetInterp { assert (vtypesize > 0); vector outputs_buffer (N_points_local * N_output_arrays * vtypesize); vector outputs (homecnts.size()); - vector status_and_retval_buffer (2 * dist::size()); + vector status_and_retval_buffer (2 * dist::size(), 0); CCTK_INT* per_proc_statuses = &status_and_retval_buffer.front(); CCTK_INT* per_proc_retvals = per_proc_statuses + dist::size(); -- cgit v1.2.3