diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-03-01 18:36:47 -0600 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-03-01 18:36:47 -0600 |
commit | 3e2aac9e9791759d5263d4edb59bcf8470f570ba (patch) | |
tree | f9bb2f8bdb002e1f8d3a6839c9bbcbbc20f74dcb /Carpet/CarpetInterp | |
parent | fddf250b40090d60115e90b1f364212184dc5b77 (diff) |
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.
Diffstat (limited to 'Carpet/CarpetInterp')
-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 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<char> outputs_buffer (N_points_local * N_output_arrays * vtypesize); vector<char*> outputs (homecnts.size()); - vector<CCTK_INT> status_and_retval_buffer (2 * dist::size()); + vector<CCTK_INT> 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(); |