diff options
-rw-r--r-- | src/ReduceArraysGlobally.c | 5 | ||||
-rw-r--r-- | 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++) |