aboutsummaryrefslogtreecommitdiff
path: root/src/Operator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Operator.c')
-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)
{