diff options
Diffstat (limited to 'src/StaticBoundary.c')
-rw-r--r-- | src/StaticBoundary.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/StaticBoundary.c b/src/StaticBoundary.c index f3b1c2a..c011af5 100644 --- a/src/StaticBoundary.c +++ b/src/StaticBoundary.c @@ -25,7 +25,7 @@ static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusBase_Boundary_StaticBoundary_c); static int ApplyBndStatic (const cGH *GH, - int stencil_dir, + CCTK_INT stencil_dir, const CCTK_INT *stencil_alldirs, int dir, int first_var, @@ -134,7 +134,8 @@ CCTK_INT BndStatic(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; } @@ -879,7 +880,7 @@ void CCTK_FCALL CCTK_FNAME (BndStaticVN) @endvar @var width_dir @vdesc boundary width in direction dir - @vtype int + @vtype CCTK_INT @vio in @endvar @var in_widths @@ -925,18 +926,18 @@ void CCTK_FCALL CCTK_FNAME (BndStaticVN) @endreturndesc @@*/ static int ApplyBndStatic (const cGH *GH, - int width_dir, - const CCTK_INT *in_widths, - int dir, - int first_var, - int num_vars) + CCTK_INT width_dir, + const CCTK_INT *in_widths, + int dir, + int first_var, + int num_vars) { int i, j, k; int timelvl_to, timelvl_from; int gindex, gdim; int var, 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; /* Only apply boundary condition if more than one timelevel */ @@ -977,7 +978,7 @@ static int ApplyBndStatic (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 { |