diff options
author | Erik Schnetter <schnetter@aei.mpg.de> | 2004-10-02 18:37:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@aei.mpg.de> | 2004-10-02 18:37:00 +0000 |
commit | 668a1b6244c457080869883472cd6a685282ea2b (patch) | |
tree | 7155ebf2b7a2a9551d9ca9735d649126177e1403 /Carpet/CarpetInterp/src | |
parent | b5ee673df8d0628d09effbc2e42ad136d89b1c28 (diff) |
CarpetInterp: Fix segfault when determining interpolation times
darcs-hash:20041002183708-891bb-96a5a3227becd0e40834fb9ab25ef5f9d75c1df5.gz
Diffstat (limited to 'Carpet/CarpetInterp/src')
-rw-r--r-- | Carpet/CarpetInterp/src/interp.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetInterp/src/interp.cc b/Carpet/CarpetInterp/src/interp.cc index 683e396da..d19a63652 100644 --- a/Carpet/CarpetInterp/src/interp.cc +++ b/Carpet/CarpetInterp/src/interp.cc @@ -233,7 +233,7 @@ namespace CarpetInterp { (param_table_handle, N_interp_points, &interpolation_times.front(), "interpolation_times"); if (ierr == UTIL_ERROR_TABLE_NO_SUCH_KEY) { - for (int n=0; n<N_output_arrays; ++n) { + for (int n=0; n<N_interp_points; ++n) { interpolation_times.at(n) = current_time; } interpolation_times_differ = false; @@ -248,7 +248,7 @@ namespace CarpetInterp { (param_table_handle, N_interp_points, &time_deriv_order.front(), "time_deriv_order"); if (ierr == UTIL_ERROR_TABLE_NO_SUCH_KEY) { - for (int n=0; n<N_output_arrays; ++n) { + for (int n=0; n<N_interp_points; ++n) { time_deriv_order.at(n) = 0; } have_time_derivs = false; |