diff options
author | tradke <tradke@d60812e6-3970-4df4-986e-c251b06effeb> | 2003-04-15 15:30:11 +0000 |
---|---|---|
committer | tradke <tradke@d60812e6-3970-4df4-986e-c251b06effeb> | 2003-04-15 15:30:11 +0000 |
commit | 2a7f167722503f0ef2a08268d7a8ed24555be1de (patch) | |
tree | aa79d7187863aebc4d93a5d0078477321209fbb6 /src/Startup.c | |
parent | 65d11ce0dae35439629a621b18c0b6a5d141ce8e (diff) |
Added new reduction operator "count" which returns the number of grid points
of a grid variable which a reduction operator is working on. This closes
PR CactusPUGH/1477.
Added new reduction operators "L3Norm" and "L4Norm" to compute the L3 and L4
norm resp.
Also added synonyms for some existing reduction operators: "average" = "mean",
"norm1" = "L1Norm", "norm2" = "L2Norm", "norm_inf" = "LinfNorm".
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHReduce/trunk@40 d60812e6-3970-4df4-986e-c251b06effeb
Diffstat (limited to 'src/Startup.c')
-rw-r--r-- | src/Startup.c | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/src/Startup.c b/src/Startup.c index 2422b58..e40f2b9 100644 --- a/src/Startup.c +++ b/src/Startup.c @@ -38,21 +38,37 @@ int PUGHReduce_Startup(void); int PUGHReduce_Startup (void) { /* Register the reduction operators provided by PUGH */ - CCTK_RegisterReductionOperator (PUGH_ReductionMinValGVs, "minimum"); - CCTK_RegisterReductionOperator (PUGH_ReductionMaxValGVs, "maximum"); - CCTK_RegisterReductionOperator (PUGH_ReductionSumGVs, "sum"); CCTK_RegisterReductionOperator (PUGH_ReductionAvgGVs, "average"); + CCTK_RegisterReductionOperator (PUGH_ReductionAvgGVs, "mean"); + CCTK_RegisterReductionOperator (PUGH_ReductionCountGVs, "count"); + CCTK_RegisterReductionOperator (PUGH_ReductionMaxValGVs, "maximum"); + CCTK_RegisterReductionOperator (PUGH_ReductionMinValGVs, "minimum"); CCTK_RegisterReductionOperator (PUGH_ReductionNorm1GVs, "norm1"); + CCTK_RegisterReductionOperator (PUGH_ReductionNorm1GVs, "L1Norm"); CCTK_RegisterReductionOperator (PUGH_ReductionNorm2GVs, "norm2"); + CCTK_RegisterReductionOperator (PUGH_ReductionNorm2GVs, "L2Norm"); + CCTK_RegisterReductionOperator (PUGH_ReductionNorm3GVs, "norm3"); + CCTK_RegisterReductionOperator (PUGH_ReductionNorm3GVs, "L3Norm"); + CCTK_RegisterReductionOperator (PUGH_ReductionNorm4GVs, "norm4"); + CCTK_RegisterReductionOperator (PUGH_ReductionNorm4GVs, "L4Norm"); CCTK_RegisterReductionOperator (PUGH_ReductionNormInfGVs, "norm_inf"); + CCTK_RegisterReductionOperator (PUGH_ReductionSumGVs, "sum"); - CCTK_RegisterReductionArrayOperator (PUGH_ReductionMinValArrays, "minimum"); - CCTK_RegisterReductionArrayOperator (PUGH_ReductionMaxValArrays, "maximum"); - CCTK_RegisterReductionArrayOperator (PUGH_ReductionSumArrays, "sum"); CCTK_RegisterReductionArrayOperator (PUGH_ReductionAvgArrays, "average"); + CCTK_RegisterReductionArrayOperator (PUGH_ReductionAvgArrays, "mean"); + CCTK_RegisterReductionArrayOperator (PUGH_ReductionCountArrays, "count"); + CCTK_RegisterReductionArrayOperator (PUGH_ReductionMaxValArrays, "maximum"); + CCTK_RegisterReductionArrayOperator (PUGH_ReductionMinValArrays, "minimum"); CCTK_RegisterReductionArrayOperator (PUGH_ReductionNorm1Arrays, "norm1"); + CCTK_RegisterReductionArrayOperator (PUGH_ReductionNorm1Arrays, "L1Norm"); CCTK_RegisterReductionArrayOperator (PUGH_ReductionNorm2Arrays, "norm2"); + CCTK_RegisterReductionArrayOperator (PUGH_ReductionNorm2Arrays, "L2Norm"); + CCTK_RegisterReductionArrayOperator (PUGH_ReductionNorm3Arrays, "norm3"); + CCTK_RegisterReductionArrayOperator (PUGH_ReductionNorm3Arrays, "L3Norm"); + CCTK_RegisterReductionArrayOperator (PUGH_ReductionNorm4Arrays, "norm4"); + CCTK_RegisterReductionArrayOperator (PUGH_ReductionNorm4Arrays, "L4Norm"); CCTK_RegisterReductionArrayOperator (PUGH_ReductionNormInfArrays, "norm_inf"); + CCTK_RegisterReductionArrayOperator (PUGH_ReductionSumArrays, "sum"); return (0); } |