diff options
author | baiotti <baiotti@54511f98-0e4f-0410-826e-eb8b393f5a1e> | 2005-10-27 15:34:30 +0000 |
---|---|---|
committer | baiotti <baiotti@54511f98-0e4f-0410-826e-eb8b393f5a1e> | 2005-10-27 15:34:30 +0000 |
commit | 049ce8a3bf87bbebd787dc781b76e4320e5c7231 (patch) | |
tree | 4b3513efe67bf0c93f00aaa8f24cecce5a6c823c /src/loop.c | |
parent | a770662a2f1becd61ab39302aa5636b7a9771427 (diff) |
Do not use ADMMAcros (C version), since they are bugged (for Carpet). Finish changes that ensure compatibility with Carpet and multiprocessor runs. Not tested extensively.
git-svn-id: http://svn.aei.mpg.de/numrel/AEIThorns/ADMMass/trunk@5 54511f98-0e4f-0410-826e-eb8b393f5a1e
Diffstat (limited to 'src/loop.c')
-rw-r--r-- | src/loop.c | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -2,13 +2,23 @@ #include <cctk_Arguments.h> #include <cctk_Parameters.h> -/* Initialises the loop counter to the last radius/distance set */ + +/* Initialise the loop counter */ void ADMMass_InitLoopCounter(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS DECLARE_CCTK_PARAMETERS - *ADMMass_LoopCounter = ADMMass_number; + *ADMMass_LoopCounter = 0; +} + +/* Set the loop counter to the value of the parameter ADMMass:ADMMass_number */ +void ADMMass_SetLoopCounter(CCTK_ARGUMENTS) +{ + DECLARE_CCTK_ARGUMENTS + DECLARE_CCTK_PARAMETERS + + *ADMMass_LoopCounter = ADMMass_number; } /* Decrements the counter to loop over all radii/distances set */ @@ -18,4 +28,5 @@ void ADMMass_Loop(CCTK_ARGUMENTS) DECLARE_CCTK_PARAMETERS (*ADMMass_LoopCounter)--; + } |