From 58e21088bc6d95160321847d7cc1d8339be1289e Mon Sep 17 00:00:00 2001 From: eschnett Date: Fri, 11 May 2012 16:50:05 +0000 Subject: Remove unused variables git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHReduce/trunk@98 d60812e6-3970-4df4-986e-c251b06effeb --- src/ReduceArraysGlobally.c | 5 +---- src/ReduceGA.c | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/ReduceArraysGlobally.c b/src/ReduceArraysGlobally.c index 5c2edc8..cc33b54 100644 --- a/src/ReduceArraysGlobally.c +++ b/src/ReduceArraysGlobally.c @@ -165,8 +165,6 @@ static int ReduceArraysGlobally (const cGH *GH, int perform_3_root = 1; int perform_4_root = 1; int perform_all_reduce = 1; - pGA *GA; - const void *data; int created_local_par_table = 0; /* weight variables */ @@ -195,11 +193,10 @@ static int ReduceArraysGlobally (const cGH *GH, #endif #ifdef CCTK_MPI - int nprocs = 0, myproc =0, global_operation = 0; + int nprocs = 0, global_operation = 0; const pGH *pughGH = NULL; void *local_outvals = NULL; nprocs = CCTK_nProcs(GH); - myproc = CCTK_MyProc(GH); if (dest_proc >=0 && dest_proc <=nprocs) { perform_all_reduce = 0; diff --git a/src/ReduceGA.c b/src/ReduceGA.c index 6bcc08e..7ce6a18 100644 --- a/src/ReduceGA.c +++ b/src/ReduceGA.c @@ -144,7 +144,6 @@ static int ReduceGridArrays (const cGH *GH, int perform_4_root = 1; int perform_all_reduce = 1; pGA *GA; - const void *data; int created_local_par_table = 0; /* weight variables */ @@ -175,11 +174,10 @@ static int ReduceGridArrays (const cGH *GH, #endif #ifdef CCTK_MPI - int nprocs = 0, myproc =0, global_operation = 0; + int nprocs = 0, global_operation = 0; const pGH *pughGH = NULL; void *local_outvals = NULL; nprocs = CCTK_nProcs(GH); - myproc = CCTK_MyProc(GH); if (dest_proc >=0 && dest_proc <=nprocs) { perform_all_reduce = 0; @@ -232,7 +230,6 @@ static int ReduceGridArrays (const cGH *GH, /* get the GA structure for the current timelevel */ GA = ((pGA ***) PUGH_pGH (GH)->variables)[input_array_variable_indices[0]][0]; - data = GA->data; /* calculate index ranges */ for ( i=0; i < dim; i++) -- cgit v1.2.3