aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhinder <hinder@936e0995-0e4f-0410-aade-aa24bf7baf3d>2012-11-27 22:49:39 +0000
committerhinder <hinder@936e0995-0e4f-0410-aade-aa24bf7baf3d>2012-11-27 22:49:39 +0000
commit504eba0ebdf197d44a825ca8e70c136599d03534 (patch)
tree454398cf7157ffa5cd08ec374f1241f4e47bcaee
parentb4d34dcf71cb0fdc67f8843d145fb90552e76e53 (diff)
Remove unused variablesHEADsvnmaster
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Noise/trunk@36 936e0995-0e4f-0410-aade-aa24bf7baf3d
-rw-r--r--src/bc_noise.c6
-rw-r--r--src/id_noise.c1
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));