aboutsummaryrefslogtreecommitdiff
path: root/src/FlatBoundary.c
diff options
context:
space:
mode:
authorrideout <rideout@6a38eb6e-646e-4a02-a296-d141613ad6c4>2003-08-18 18:10:26 +0000
committerrideout <rideout@6a38eb6e-646e-4a02-a296-d141613ad6c4>2003-08-18 18:10:26 +0000
commitd6fce9d9ab97b13a97252d2cd991ffeb3327889d (patch)
treef0a4ccc022a842de8cfe5b204fc77ee293568ae5 /src/FlatBoundary.c
parentf34544d09c8edd3a842def338051c3a96b0acfd1 (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/FlatBoundary.c')
-rw-r--r--src/FlatBoundary.c15
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
{