aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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));