diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-11-05 14:58:55 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-11-05 14:58:55 +0000 |
commit | 7429addb5b7f80c1035b59afa239996ff1a58c65 (patch) | |
tree | 1ba6dde297325a705161420eacd2a2151db10fa5 /src/main/CactusDefaultMainLoopIndex.c | |
parent | 295247798ad3e1ef841ac7e04d219ac3cb146e8b (diff) |
Adding a const qualifier to the 'cGH *' argument of some flesh routines
and for I/O method registration.
You will also need to update the I/O thorns which I will commit changes to now.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2452 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/CactusDefaultMainLoopIndex.c')
-rw-r--r-- | src/main/CactusDefaultMainLoopIndex.c | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/src/main/CactusDefaultMainLoopIndex.c b/src/main/CactusDefaultMainLoopIndex.c index 6de38f74..29a5b683 100644 --- a/src/main/CactusDefaultMainLoopIndex.c +++ b/src/main/CactusDefaultMainLoopIndex.c @@ -3,11 +3,12 @@ @date Wed Oct 04 16:53:58 2000 @author Gabrielle Allen @desc - The default main loop index routines + The default main loop index routines @enddesc + @version $Id$ @@*/ -#include "cctk.h" +#include "cctk_Flesh.h" static const char *rcsid = "$Header$"; @@ -15,21 +16,24 @@ CCTK_FILEVERSION(main_CactusDefaultMainLoopIndex_c) static int iteration = 0; +int CactusDefaultMainLoopIndex (void); +int CactusDefaultSetMainLoopIndex (int main_loop_index); + + /*@@ @routine CactusDefaultMainLoopIndex @date Wed Oct 04 16:53:58 2000 @author Gabrielle Allen @desc - Default main loop index routine + Default main loop index routine @enddesc - @calls - @calledby - @history - - @endhistory + @returntype int + @returndesc + current value of the iteration counter + @endreturndesc @@*/ -int CactusDefaultMainLoopIndex(void) +int CactusDefaultMainLoopIndex (void) { return (iteration); } @@ -42,14 +46,15 @@ int CactusDefaultMainLoopIndex(void) @desc Sets the iteration counter variable of the evolution loop. This is used for recovery. - @enddesc - @calls - @calledby + @enddesc + @returntype int + @returndesc + value of the new iteration counter + @endreturndesc @@*/ int CactusDefaultSetMainLoopIndex (int main_loop_index) { iteration = main_loop_index; - return iteration; + return (iteration); } - |