diff options
author | yye00 <yye00@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2005-12-12 16:34:41 +0000 |
---|---|---|
committer | yye00 <yye00@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2005-12-12 16:34:41 +0000 |
commit | 0ce7e4f9865633a3e7217653086467ed35f67d99 (patch) | |
tree | 2cd148c63c017d11dd4b512ffb21073400018a98 /src/comm | |
parent | f35b5db8296415efca8bbf6695560f10d1c28977 (diff) |
bumped the warning level from 3 to 1 on missing reduction operators (now that they are going mainstream). Fixed fortran interface to reduce local arrays, and a few minor cosmetic changes
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4204 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/comm')
-rw-r--r-- | src/comm/Reduction.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/comm/Reduction.c b/src/comm/Reduction.c index d0046943..ab7b9e19 100644 --- a/src/comm/Reduction.c +++ b/src/comm/Reduction.c @@ -65,12 +65,12 @@ void CCTK_FCALL CCTK_FNAME(CCTK_LocalArrayReductionHandle) (int *handle, ONE_FORTSTRING_ARG); void CCTK_FCALL CCTK_FNAME(CCTK_ReduceLocalArrays) (int *fortran_return, - int N_dims, int *operation_handle, - int param_table_handle, int N_input_arrays, + int *N_dims, int *operation_handle, + int *param_table_handle, int *N_input_arrays, const CCTK_INT input_array_dims[], const CCTK_INT input_array_type_codes[], const void *const input_arrays[], - int M_output_values, + int *M_output_values, const CCTK_INT output_number_type_codes[], void *const output_values[]); @@ -1218,8 +1218,8 @@ int CCTK_ReduceLocalArrays(int N_dims, /* Get the pointer to the reduction operator */ if (local_reduce_handle < 0) { - CCTK_Warn(3,__LINE__,__FILE__,"Cactus", - "CCTK_LocalArraysReduce: Invalid handle passed to CCTK_LocalArraysReduce"); + CCTK_Warn(1,__LINE__,__FILE__,"Cactus", + "CCTK_LocalArraysReduce: Invalid handle passed to CCTK_ReduceLocalArrays"); retval = -1; } else @@ -1229,8 +1229,8 @@ int CCTK_ReduceLocalArrays(int N_dims, if (!operator) { - CCTK_Warn(3,__LINE__,__FILE__,"Cactus", - "CCTK_LocalArraysReduce: Reduction operation is not registered" + CCTK_Warn(1,__LINE__,__FILE__,"Cactus", + "CCTK_ReduceLocalArrays: Reduction operation is not registered" "and cannot be called"); retval = -1; } @@ -1247,12 +1247,12 @@ int CCTK_ReduceLocalArrays(int N_dims, } void CCTK_FCALL CCTK_FNAME(CCTK_ReduceLocalArrays) - (int *fortranreturn,int N_dims, int *operation_handle, - int param_table_handle, int N_input_arrays, + (int *fortranreturn,int * N_dims, int *operation_handle, + int *param_table_handle, int * N_input_arrays, const CCTK_INT input_array_dims[], const CCTK_INT input_array_type_codes[], const void *const input_arrays[], - int M_output_numbers, const CCTK_INT output_number_type_codes[], + int * M_output_numbers, const CCTK_INT output_number_type_codes[], void *const output_numbers[]) { int retval; @@ -1281,10 +1281,10 @@ void CCTK_FCALL CCTK_FNAME(CCTK_ReduceLocalArrays) } else { - retval = operator->reduce_operator (N_dims, *operation_handle, - param_table_handle, N_input_arrays, + retval = operator->reduce_operator (*N_dims, *operation_handle, + *param_table_handle, *N_input_arrays, input_array_dims, input_array_type_codes, - input_arrays, M_output_numbers, + input_arrays, *M_output_numbers, output_number_type_codes, output_numbers); } } |