From 3a1bd1320a7ac4ef58588aa68272a4b03fd692bb Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Wed, 10 Aug 2005 16:57:00 +0000 Subject: CarpetInterp: Make time_deriv_order per output array instead of per grid point Interpret the option table parameter time_deriv_order per output array instead of per grid point. darcs-hash:20050810165758-891bb-a4b84c90771da42c20878ebd59a797ef44a29b78.gz --- Carpet/CarpetInterp/src/interp.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Carpet/CarpetInterp') diff --git a/Carpet/CarpetInterp/src/interp.cc b/Carpet/CarpetInterp/src/interp.cc index ee4c218ce..e336f655f 100644 --- a/Carpet/CarpetInterp/src/interp.cc +++ b/Carpet/CarpetInterp/src/interp.cc @@ -82,6 +82,7 @@ namespace CarpetInterp { find_time_interpolation_order (cGH const * const cgh, int const param_table_handle, int const N_interp_points, + int const N_output_arrays, int & prolongation_order_time, CCTK_REAL & current_time, vector & time_deriv_order, @@ -365,7 +366,7 @@ namespace CarpetInterp { // Find the time interpolation order - vector time_deriv_order (N_interp_points); + vector time_deriv_order (N_output_arrays); vector interpolation_times (N_interp_points); bool interpolation_times_differ; bool have_time_derivs; @@ -376,6 +377,7 @@ namespace CarpetInterp { (cgh, param_table_handle, N_interp_points, + N_output_arrays, prolongation_order_time, current_time, time_deriv_order, interpolation_times, interpolation_times_differ, have_time_derivs); @@ -601,6 +603,7 @@ namespace CarpetInterp { find_time_interpolation_order (cGH const * const cgh, int const param_table_handle, int const N_interp_points, + int const N_output_arrays, int & prolongation_order_time, CCTK_REAL & current_time, vector & time_deriv_order, @@ -634,15 +637,15 @@ namespace CarpetInterp { } ierr = Util_TableGetIntArray - (param_table_handle, N_interp_points, + (param_table_handle, N_output_arrays, &time_deriv_order.front(), "time_deriv_order"); if (ierr == UTIL_ERROR_TABLE_NO_SUCH_KEY) { - for (int n=0; n=0 && vi