diff options
author | allen <allen@d60812e6-3970-4df4-986e-c251b06effeb> | 2000-11-27 14:11:28 +0000 |
---|---|---|
committer | allen <allen@d60812e6-3970-4df4-986e-c251b06effeb> | 2000-11-27 14:11:28 +0000 |
commit | 3444ee7db0e5e200643c58c150bd0c55620f4b0e (patch) | |
tree | 66913593f074e2db442e331deeb75ad18de504e2 /src/Startup.c | |
parent | 003f513ec7c2e4f163261d6a9cae7d4ddfba390b (diff) |
This commit was generated by cvs2svn to compensate for changes in r2, which
included commits to RCS files with non-trunk default branches.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHReduce/trunk@3 d60812e6-3970-4df4-986e-c251b06effeb
Diffstat (limited to 'src/Startup.c')
-rw-r--r-- | src/Startup.c | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/Startup.c b/src/Startup.c new file mode 100644 index 0000000..56040da --- /dev/null +++ b/src/Startup.c @@ -0,0 +1,51 @@ + /*@@ + @file Startup.c + @date Wed Feb 3 23:10:19 1999 + @author Tom Goodale + @desc + Startup routines for PUGHReduce. + @enddesc + @version $Header$ + @@*/ + +#include "cctk.h" + +#include "pugh_reductions.h" + +static char *rcsid="$Header$"; + +CCTK_FILEVERSION(CactusPUGH_PUGHReduce_Startup_c) + + + /*@@ + @routine PUGHReduce_Startup + @date Wed Feb 3 23:14:38 1999 + @author Tom Goodale + @desc + The startup registration routine for PUGHReduce. + @enddesc + @calls + @calledby + @history + + @endhistory + +@@*/ +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_ReductionNorm1GVs, "norm1"); + CCTK_RegisterReductionOperator(PUGH_ReductionNorm2GVs, "norm2"); + + CCTK_RegisterReductionArrayOperator(PUGH_ReductionMinValArrays, "minimum"); + CCTK_RegisterReductionArrayOperator(PUGH_ReductionMaxValArrays, "maximum"); + CCTK_RegisterReductionArrayOperator(PUGH_ReductionSumArrays, "sum"); + CCTK_RegisterReductionArrayOperator(PUGH_ReductionNorm1Arrays, "norm1"); + CCTK_RegisterReductionArrayOperator(PUGH_ReductionNorm2Arrays, "norm2"); + + return 0; +} |