aboutsummaryrefslogtreecommitdiff
path: root/src/CopyBoundary.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/CopyBoundary.c')
-rw-r--r--src/CopyBoundary.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/CopyBoundary.c b/src/CopyBoundary.c
index cc266de..c6e1721 100644
--- a/src/CopyBoundary.c
+++ b/src/CopyBoundary.c
@@ -30,7 +30,7 @@ static const char *rcsid = "$Header$";
CCTK_FILEVERSION(CactusBase_Boundary_CopyBoundary_c);
static int ApplyBndCopy (const cGH *GH,
- int stencil_dir,
+ CCTK_INT stencil_dir,
const CCTK_INT *stencil_alldirs,
int dir,
int first_var_to,
@@ -183,7 +183,8 @@ CCTK_INT BndCopy(const cGH *GH, CCTK_INT num_vars, CCTK_INT *vars,
gdim = CCTK_GroupDimI(gi);
if (gdim > max_gdim)
{
- width_alldirs = realloc(width_alldirs, 2*gdim*sizeof(CCTK_INT));
+ width_alldirs = (CCTK_INT *)
+ realloc(width_alldirs, 2*gdim*sizeof(CCTK_INT));
max_gdim = gdim;
}
@@ -1032,13 +1033,13 @@ void CCTK_FCALL CCTK_FNAME (BndCopyVN)
@vtype const cGH *
@vio in
@endvar
- @var stencil_dir
- @vdesc stencil width in direction dir
- @vtype int
+ @var width_dir
+ @vdesc boundary width in direction dir
+ @vtype CCTK_INT
@vio in
@endvar
- @var stencil_alldirs
- @vdesc stencil widths for all directions
+ @var in_widths
+ @vdesc boundary widths for all directions
@vtype CCTK_INT [ dimension of variable(s) ]
@vio in
@endvar
@@ -1084,7 +1085,7 @@ void CCTK_FCALL CCTK_FNAME (BndCopyVN)
@endreturndesc
@@*/
static int ApplyBndCopy (const cGH *GH,
- int width_dir,
+ CCTK_INT width_dir,
const CCTK_INT *in_widths,
int dir,
int first_var_to,
@@ -1095,7 +1096,8 @@ static int ApplyBndCopy (const cGH *GH,
int timelvl_to, timelvl_from;
int gindex, gdim;
int var_to, var_from, vtypesize;
- int doBC[2*MAXDIM], dstag[MAXDIM], lsh[MAXDIM], lssh[MAXDIM], widths[2*MAXDIM];
+ int doBC[2*MAXDIM], dstag[MAXDIM], lsh[MAXDIM], lssh[MAXDIM];
+ CCTK_INT widths[2*MAXDIM];
SymmetryGHex *sGHex;
@@ -1131,7 +1133,7 @@ static int ApplyBndCopy (const cGH *GH,
}
else if (in_widths)
{
- memcpy (widths, in_widths, 2 * gdim * sizeof (int));
+ memcpy (widths, in_widths, 2 * gdim * sizeof (CCTK_INT));
}
else
{