diff options
author | rideout <rideout@6a38eb6e-646e-4a02-a296-d141613ad6c4> | 2003-08-18 18:10:26 +0000 |
---|---|---|
committer | rideout <rideout@6a38eb6e-646e-4a02-a296-d141613ad6c4> | 2003-08-18 18:10:26 +0000 |
commit | d6fce9d9ab97b13a97252d2cd991ffeb3327889d (patch) | |
tree | f0a4ccc022a842de8cfe5b204fc77ee293568ae5 /src/CopyBoundary.c | |
parent | f34544d09c8edd3a842def338051c3a96b0acfd1 (diff) |
some CCTK_INT vs. int fixes
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Boundary/trunk@242 6a38eb6e-646e-4a02-a296-d141613ad6c4
Diffstat (limited to 'src/CopyBoundary.c')
-rw-r--r-- | src/CopyBoundary.c | 22 |
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 { |