aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@1c20744c-e24a-42ec-9533-f5004cb800e5>2003-03-11 09:35:29 +0000
committertradke <tradke@1c20744c-e24a-42ec-9533-f5004cb800e5>2003-03-11 09:35:29 +0000
commit682c7c4c748615d3c02ceef443ae2428cb2d4d4d (patch)
treea9f3096cfe91c1489eae0bb723713a2703caf903
parent308686fdec590aaaadb0c1775608a392768a1b46 (diff)
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
-rw-r--r--src/Operator.c12
1 files 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)
{