From 682c7c4c748615d3c02ceef443ae2428cb2d4d4d Mon Sep 17 00:00:00 2001 From: tradke Date: Tue, 11 Mar 2003 09:35:29 +0000 Subject: Fixed missing 'const' qualifiers to function arguments. This closes PR CactusPUGH/1437. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHInterp/trunk@53 1c20744c-e24a-42ec-9533-f5004cb800e5 --- src/Operator.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Operator.c b/src/Operator.c index 0ae230d..a405ef5 100644 --- a/src/Operator.c +++ b/src/Operator.c @@ -79,7 +79,7 @@ static int GetLocalCoords (const cGH *GH, int N_points, const char *coord_system_name, const pGExtras *extras, - const CCTK_REAL *coords[], + const CCTK_REAL *const coords[], int *N_local_points, CCTK_REAL **local_coords); #endif @@ -184,7 +184,7 @@ int PUGHInterp_InterpGV (cGH *GH, int i, nprocs, N_dims, point, array, retval; CCTK_REAL *interp_local_coords; CCTK_REAL *origin, *delta; - const CCTK_REAL **data; + const CCTK_REAL *const *data; const void **input_arrays; const pGH *pughGH; const pGExtras *extras; @@ -283,7 +283,7 @@ int PUGHInterp_InterpGV (cGH *GH, points, grid arrays cannot. */ retval = CheckOutOfBounds (GH, coord_system_name, order, N_dims, N_points, extras->nsize, - (const CCTK_REAL **) interp_coord_arrays); + (const CCTK_REAL *const *) interp_coord_arrays); } if (retval < 0) @@ -300,7 +300,7 @@ int PUGHInterp_InterpGV (cGH *GH, { /* sort the individual interpolation coordinate arrays into a single one */ interp_local_coords = malloc (N_dims * N_points * sizeof (CCTK_REAL)); - data = (const CCTK_REAL **) interp_coord_arrays; + data = (const CCTK_REAL *const *) interp_coord_arrays; for (point = 0; point < N_points; point++) { for (i = 0; i < N_dims; i++) @@ -414,7 +414,7 @@ int PUGHInterp_InterpGV (cGH *GH, the number of processor-local points is returned in N_local_points, their coordinates in interp_local_coords */ retval = GetLocalCoords (GH, N_points, coord_system_name, extras, - (const CCTK_REAL **) interp_coord_arrays, + (const CCTK_REAL *const *) interp_coord_arrays, &N_local_points, &interp_local_coords); if (retval) { @@ -711,7 +711,7 @@ static int GetLocalCoords (const cGH *GH, int N_points, const char *coord_system_name, const pGExtras *extras, - const CCTK_REAL *coords[], + const CCTK_REAL *const coords[], int *N_local_points, CCTK_REAL **local_coords) { -- cgit v1.2.3