aboutsummaryrefslogtreecommitdiff
path: root/Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.c
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2011-05-27 15:34:34 +0200
committerIan Hinder <ian.hinder@aei.mpg.de>2011-05-27 16:14:59 +0200
commitce3f98a21a00360edd3e0714e283abb2b321448b (patch)
tree8e203a2ff6e4b7f664c4e7b39b5aa30aae1fdb91 /Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.c
parent5466a30138ca0f0b3a5fe792b16589a8e61d5e3f (diff)
Add restrict and const qualifiers to the Jacobian pointers
Diffstat (limited to 'Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.c')
-rw-r--r--Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.c b/Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.c
index ba9423c..e418cc6 100644
--- a/Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.c
+++ b/Auxiliary/Cactus/KrancNumericalTools/GenericFD/src/GenericFD.c
@@ -511,7 +511,7 @@ void GenericFD_AssertGroupStorage(cGH const * restrict const cctkGH, const char
/* Return a list of pointers to the members of a named group */
void GenericFD_GroupDataPointers(cGH const * restrict const cctkGH, const char *group_name,
- int nvars, CCTK_REAL **ptrs)
+ int nvars, CCTK_REAL const *restrict *ptrs)
{
int group_index, status;
cGroup group_info;
@@ -541,6 +541,6 @@ void GenericFD_GroupDataPointers(cGH const * restrict const cctkGH, const char *
for (int v = 0; v < nvars; v++)
{
- ptrs[v] = (CCTK_REAL *) CCTK_VarDataPtrI(cctkGH, 0 /* timelevel */, v1+v);
+ ptrs[v] = (CCTK_REAL const *) CCTK_VarDataPtrI(cctkGH, 0 /* timelevel */, v1+v);
}
}