diff options
Diffstat (limited to 'src/FlatBoundary.c')
-rw-r--r-- | src/FlatBoundary.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/FlatBoundary.c b/src/FlatBoundary.c index 4f9e9e3..9f4308e 100644 --- a/src/FlatBoundary.c +++ b/src/FlatBoundary.c @@ -33,7 +33,7 @@ static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusBase_Boundary_FlatBoundary_c); static int ApplyBndFlat (const cGH *GH, - int stencil_dir, + CCTK_INT stencil_dir, const CCTK_INT *stencil_alldirs, int dir, int first_var, @@ -139,7 +139,8 @@ CCTK_INT BndFlat(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; } @@ -870,7 +871,7 @@ void CCTK_FCALL CCTK_FNAME (BndFlatVN) @endvar @var width_dir @vdesc boundary width in direction dir - @vtype int + @vtype CCTK_INT @vio in @endvar @var in_widths @@ -915,7 +916,7 @@ void CCTK_FCALL CCTK_FNAME (BndFlatVN) @endreturndesc @@*/ static int ApplyBndFlat (const cGH *GH, - int width_dir, + CCTK_INT width_dir, const CCTK_INT *in_widths, int dir, int first_var, @@ -923,8 +924,8 @@ static int ApplyBndFlat (const cGH *GH, { int i, j, k; int var, vtypesize, gindex, gdim, timelvl; - 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; @@ -960,7 +961,7 @@ static int ApplyBndFlat (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 { |