aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/slab.c6
-rw-r--r--src/slab.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/slab.c b/src/slab.c
index 5a4f8c4..6a2ae1d 100644
--- a/src/slab.c
+++ b/src/slab.c
@@ -240,7 +240,7 @@ MPI_Alltoallv (void * sendbuf, int * sendcnt, int * sendoff, int sendtype,
/* Get the MPI COMM_WOLRD communicator from the driver */
static MPI_Comm
-get_mpi_comm (cGH * restrict const cctkGH)
+get_mpi_comm (const cGH * restrict const cctkGH)
{
#ifdef CCTK_MPI
# if defined CARPET_CARPET
@@ -547,7 +547,7 @@ static void bbox_xform (struct bbox * restrict const ydst,
-int Slab_Transfer (cGH * restrict const cctkGH,
+int Slab_Transfer (cGH const * restrict const cctkGH,
int const dim,
struct xferinfo const * restrict const xferinfo,
int const options,
@@ -1072,7 +1072,7 @@ int Slab_Transfer (cGH * restrict const cctkGH,
void CCTK_FCALL
CCTK_FNAME(Slab_Transfer) (int * restrict const ierr,
- cGH * restrict const cctkGH,
+ cGH const * restrict const cctkGH,
int const * restrict const dim,
int const * restrict const src_gsh,
int const * restrict const src_lbnd,
diff --git a/src/slab.h b/src/slab.h
index 69c63a6..84c0af1 100644
--- a/src/slab.h
+++ b/src/slab.h
@@ -85,7 +85,7 @@ struct xferinfo {
int flip;
};
-int Slab_Transfer (cGH * restrict const cctkGH,
+int Slab_Transfer (cGH const * restrict const cctkGH,
int const dim,
struct xferinfo const * restrict const xferinfo,
int const options,