diff options
author | knarf <knarf@7daa882c-dc44-4453-834e-278d26b18e6a> | 2012-12-14 17:36:40 +0000 |
---|---|---|
committer | knarf <knarf@7daa882c-dc44-4453-834e-278d26b18e6a> | 2012-12-14 17:36:40 +0000 |
commit | 8c9f679ed62bca71c66410ddd25df6168d7a6202 (patch) | |
tree | 5973caf9b7eb74d81af7c21b63893dc72db38fe3 /src/ReductionMin.c | |
parent | a474b9f90260da6786cd586be3faa52bc3cd3f4c (diff) |
remove unused variables to remove compiler warnings
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/LocalReduce/trunk@100 7daa882c-dc44-4453-834e-278d26b18e6a
Diffstat (limited to 'src/ReductionMin.c')
-rw-r--r-- | src/ReductionMin.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/ReductionMin.c b/src/ReductionMin.c index 0e68d23..94965a3 100644 --- a/src/ReductionMin.c +++ b/src/ReductionMin.c @@ -136,7 +136,6 @@ static int ReductionMin (int N_dims, int operator_handle, { /* utility variables */ int i, j, num_points; - int ierr; int * iters_per_dim; int global_calling = 0; @@ -194,23 +193,22 @@ static int ReductionMin (int N_dims, int operator_handle, /* for strides and subscripts get values from param table (it they exist) */ if ( Util_TableQueryNKeys(param_table_handle) != 0) { - ierr = Util_TableGetGenericArray(param_table_handle, CCTK_VARIABLE_INT, + Util_TableGetGenericArray(param_table_handle, CCTK_VARIABLE_INT, N_input_arrays, input_array_offsets, "input_array_offsets"); - ierr = Util_TableGetGenericArray(param_table_handle, CCTK_VARIABLE_INT, + Util_TableGetGenericArray(param_table_handle, CCTK_VARIABLE_INT, N_dims, input_array_strides, "input_array_strides"); - ierr = Util_TableGetGenericArray(param_table_handle, CCTK_VARIABLE_INT, + Util_TableGetGenericArray(param_table_handle, CCTK_VARIABLE_INT, N_dims, input_array_min_subscripts, "input_array_min_subscripts"); - ierr = Util_TableGetGenericArray(param_table_handle, CCTK_VARIABLE_INT, + Util_TableGetGenericArray(param_table_handle, CCTK_VARIABLE_INT, N_dims, input_array_max_subscripts, "input_array_max_subscripts"); } /* for weights get values from param table (it they exist) */ if ( Util_TableQueryNKeys(param_table_handle) != 0) { - ierr = 0; /* Get the weight_on parameter and the weight_var_index parameter */ - ierr = Util_TableGetInt(param_table_handle, &weight_on, "weight_on"); - ierr = Util_TableGetPointerToConst(param_table_handle, &weight, "weight"); + Util_TableGetInt(param_table_handle, &weight_on, "weight_on"); + Util_TableGetPointerToConst(param_table_handle, &weight, "weight"); /* Need to add more checking here for size, storage */ } @@ -305,18 +303,18 @@ static int ReductionMin (int N_dims, int operator_handle, } /* Get the values of num_points and weight_sum */ - ierr = Util_TableGetInt(param_table_handle, &num_points, "num_points"); - ierr = Util_TableGetReal(param_table_handle, &weight_sum, "weight_sum"); + Util_TableGetInt(param_table_handle, &num_points, "num_points"); + Util_TableGetReal(param_table_handle, &weight_sum, "weight_sum"); num_points--; /* store the number of points in the paramater table and perform division */ - ierr = Util_TableGetInt(param_table_handle, &global_calling, "global_calling"); + Util_TableGetInt(param_table_handle, &global_calling, "global_calling"); if ( global_calling != 0) { - ierr = Util_TableSetInt(param_table_handle, num_points, "num_points"); - ierr = Util_TableSetInt(param_table_handle, 2,"global_operation"); - ierr = Util_TableSetInt(param_table_handle, 1,"perform_division"); + Util_TableSetInt(param_table_handle, num_points, "num_points"); + Util_TableSetInt(param_table_handle, 2,"global_operation"); + Util_TableSetInt(param_table_handle, 1,"perform_division"); } /* free memory */ |