aboutsummaryrefslogtreecommitdiff
path: root/src/ReductionCount.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ReductionCount.c')
-rw-r--r--src/ReductionCount.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/ReductionCount.c b/src/ReductionCount.c
index f94b2b1..91ff58d 100644
--- a/src/ReductionCount.c
+++ b/src/ReductionCount.c
@@ -1,7 +1,7 @@
/*@@
@file ReductionCount.c
- @date Thu Apr 3 11:54:53 1997
- @author Thomas Radke, Paul Walker, Erik Schnetter
+ @date
+ @author Tom Goodale, Yaakoub Y El Khamra
@desc
Defines the reduction operator to get the average
of an arbitrary array.
@@ -35,9 +35,9 @@ static int ReductionCount (int N_dims, int operator_handle,
/*@@
- @routine LocalReduce_Mean
- @author Thomas Radke
- @date 19 Aug 1999
+ @routine LocalReduce_Count
+ @author Tom Goodale, Yaakoub Y El Khamra
+ @date
@desc
@enddesc
@history
@@ -117,8 +117,8 @@ int LocalReduce_Count (int N_dims, int operator_handle,
/*****************************************************************************/
/*@@
@routine ReductionCount
- @date Aug 19 1999
- @author Thomas Radke
+ @date
+ @author Tom Goodale, Yaakoub Y El Khamra
@desc Returns the average of a distributed array with
'num_points' elements. Global reduction is done element-wise
(num_outvals == 1) or on the results of the local reductions.
@@ -137,8 +137,6 @@ static int ReductionCount (int N_dims, int operator_handle,
int i, j, k, flag, product, num_points;
int ierr;
int * iters_per_dim;
- void * data_pointer[10];
- void * output_buffer[10];
/* indices to hold the temp indices of size N_dims and iteration indices*/
int * indices;
@@ -247,11 +245,12 @@ static int ReductionCount (int N_dims, int operator_handle,
#undef EXTRA_STEP
#define REDUCTION_OPERATION(Count, scalar) Count = num_points;
-#define REDUCTION_INITIAL(num)
+#define REDUCTION_INITIAL(Count)
#define EXTRA_STEP(a, b)
for (i = 0; i < N_input_arrays; i++)
{
+ printf("\n number of points: %d,iter:%d, max iter is:%d", num_points,iter,max_iter);
/* Do the type matching */
switch (input_array_type_codes[i])
{
@@ -1229,7 +1228,6 @@ static int ReductionCount (int N_dims, int operator_handle,
break;
#endif
}
- printf("\n number of points:%d and iter is:%d",num_points,iter);
}
return (0);