From 504eba0ebdf197d44a825ca8e70c136599d03534 Mon Sep 17 00:00:00 2001 From: hinder Date: Tue, 27 Nov 2012 22:49:39 +0000 Subject: Remove unused variables git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Noise/trunk@36 936e0995-0e4f-0410-aade-aa24bf7baf3d --- src/bc_noise.c | 6 ++---- src/id_noise.c | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/bc_noise.c b/src/bc_noise.c index 80b617a..25255fd 100644 --- a/src/bc_noise.c +++ b/src/bc_noise.c @@ -139,10 +139,9 @@ static int ApplyBndNoise (const cGH *GH, { DECLARE_CCTK_PARAMETERS; int i, j, k; - int var, vtypesize, gindex, gdim, timelvl; + int var, gindex, gdim, timelvl; int doBC[2*MAXDIM], lsh[MAXDIM]; SymmetryGHex *sGHex; - int type; /* This argument is unused an undocumented; better make sure people don't try to use it for something. */ @@ -151,9 +150,8 @@ static int ApplyBndNoise (const cGH *GH, /* get the group index of the variables */ gindex = CCTK_GroupIndexFromVarI (first_var); - /* get the number of dimensions and the size of the variables' type */ + /* get the number of dimensions */ gdim = CCTK_GroupDimI (gindex); - vtypesize = CCTK_VarTypeSize (CCTK_VarTypeI (first_var)); /* make sure we can deal with this number of dimensions */ if (gdim > MAXDIM) diff --git a/src/id_noise.c b/src/id_noise.c index 2698272..975b8bd 100644 --- a/src/id_noise.c +++ b/src/id_noise.c @@ -24,7 +24,6 @@ add_noise_to_var (int idx, const char* optstring, void* cctkGH) int i, j, k, ijk; CCTK_REAL* data; cGH* GH = cctkGH; - int type; CCTK_VInfo(CCTK_THORNSTRING, "Adding initial data noise to %s", CCTK_VarName(idx)); -- cgit v1.2.3