diff options
author | yye00 <yye00@7daa882c-dc44-4453-834e-278d26b18e6a> | 2004-08-31 03:00:40 +0000 |
---|---|---|
committer | yye00 <yye00@7daa882c-dc44-4453-834e-278d26b18e6a> | 2004-08-31 03:00:40 +0000 |
commit | e9f3f33ab2cad984ce128adfb79cc6f24e8abb91 (patch) | |
tree | dfe138d1bbf8d85143d8e6cd1b7e3ec73caa49a3 /src/ReductionNorm1.c | |
parent | 214fc97b8438f30618f55b68eee7e9a9c48369cf (diff) |
added better functionality
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/LocalReduce/trunk@39 7daa882c-dc44-4453-834e-278d26b18e6a
Diffstat (limited to 'src/ReductionNorm1.c')
-rw-r--r-- | src/ReductionNorm1.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ReductionNorm1.c b/src/ReductionNorm1.c index c8f5839..1fb4942 100644 --- a/src/ReductionNorm1.c +++ b/src/ReductionNorm1.c @@ -137,6 +137,7 @@ static int ReductionL1 (int N_dims, int operator_handle, int i, j, k, flag, product, num_points; int ierr; int * iters_per_dim; + int global_calling = 0; /* indices to hold the temp indices of size N_dims and iteration indices*/ int * indices; @@ -1275,8 +1276,9 @@ static int ReductionL1 (int N_dims, int operator_handle, num_points--; - /* store the number of points in the paramater table */ - if ( Util_TableQueryNKeys(param_table_handle) != 0) + /* store the number of points in the paramater table and perform division */ + ierr = 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, 3,"mpi_operation"); |