aboutsummaryrefslogtreecommitdiff
path: root/src/pughInterpGH.h
diff options
context:
space:
mode:
authortradke <tradke@1c20744c-e24a-42ec-9533-f5004cb800e5>2001-05-28 15:28:21 +0000
committertradke <tradke@1c20744c-e24a-42ec-9533-f5004cb800e5>2001-05-28 15:28:21 +0000
commit5c06ee788482b032fc3c45e62dacd055c727d8b6 (patch)
tree572501419ade4fde00bc349330bcb40771591afe /src/pughInterpGH.h
parent593f34a2959d23695aaabae4847fcc9e56c781b8 (diff)
Use const pointers wherever possible.
Also removed volatile qualifiers for some pointers which were needed on the Hitachi. The compiler bug there seems to be fixed now. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHInterp/trunk@15 1c20744c-e24a-42ec-9533-f5004cb800e5
Diffstat (limited to 'src/pughInterpGH.h')
-rw-r--r--src/pughInterpGH.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/pughInterpGH.h b/src/pughInterpGH.h
index e6eef76..c9187ff 100644
--- a/src/pughInterpGH.h
+++ b/src/pughInterpGH.h
@@ -34,11 +34,11 @@ int PUGHInterp_InterpGV (cGH *GH,
int num_points,
int num_in_array_indices,
int num_out_arrays,
- void *interp_coord_arrays[],
- int interp_coord_array_types[],
- int in_array_indices[],
- void *out_arrays[],
- int out_array_types[]);
+ const void *const interp_coord_arrays[],
+ const int interp_coord_array_types[],
+ const int in_array_indices[],
+ void *const out_arrays[],
+ const int out_array_types[]);
int PUGHInterp_InterpLocal (cGH *GH,
int order,
@@ -46,26 +46,26 @@ int PUGHInterp_InterpLocal (cGH *GH,
int num_dims,
int num_in_arrays,
int num_out_arrays,
- int coord_dims[],
- void *coord_arrays[],
- int coord_array_types[],
- void *interp_coord_arrays[],
- int interp_coord_array_types[],
- void *in_arrays[],
- int in_array_types[],
- void *out_arrays[],
- int out_array_types[]);
+ const int coord_dims[],
+ const void *const coord_arrays[],
+ const int coord_array_types[],
+ const void *const interp_coord_arrays[],
+ const int interp_coord_array_types[],
+ const void *const in_arrays[],
+ const int in_array_types[],
+ void *const out_arrays[],
+ const int out_array_types[]);
/* prototypes of routines used internally */
int PUGHInterp_Interpolate (int order,
int num_points,
int num_dims,
int num_arrays,
- int dims[ /* num_dims */ ],
- CCTK_REAL coord[ /* num_dims * num_points */ ],
- CCTK_REAL origin[ /* num_dims */ ],
- CCTK_REAL delta[ /* num_dims */ ],
- int in_types[ /* num_arrays */ ],
- void *in_arrays[ /* num_arrays */ ],
- int out_types[ /* num_arrays */ ],
- void *out_arrays[ /* num_arrays */ ]);
+ const int dims[ /* num_dims */ ],
+ const CCTK_REAL coord[ /* num_dims*num_points */ ],
+ const CCTK_REAL origin[ /* num_dims */ ],
+ const CCTK_REAL delta[ /* num_dims */ ],
+ const int in_types[ /* num_arrays */ ],
+ const void *const in_arrays[ /* num_arrays */ ],
+ const int out_types[ /* num_arrays */ ],
+ void *const out_arrays[ /* num_arrays */ ]);