summaryrefslogtreecommitdiff
path: root/src/main/MainUtils.c
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-10-04 22:01:28 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-10-04 22:01:28 +0000
commit125f570312122ce3de31c699c95637d2a4eddaf2 (patch)
treee249bcf8898727e35204c0551e02bd8117e3da2d /src/main/MainUtils.c
parent5dadfa4188f57b3abe680526ce06146b888a789e (diff)
Made CCTK_MainLoopIndex and CCTK_SetMainLoopIndex overloadable, and added
routines that were originally there as defaults git-svn-id: http://svn.cactuscode.org/flesh/trunk@1852 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/MainUtils.c')
-rw-r--r--src/main/MainUtils.c44
1 files changed, 1 insertions, 43 deletions
diff --git a/src/main/MainUtils.c b/src/main/MainUtils.c
index 7fb61368..158159ec 100644
--- a/src/main/MainUtils.c
+++ b/src/main/MainUtils.c
@@ -17,51 +17,9 @@
static char *rcsid = "$Header$";
-static const char *startuptime = "How do I do this";
-
CCTK_FILEVERSION(main_MainUtils_c)
-/* the iteration counter used in the evolution loop */
-static int iteration = 0;
-
-
- /*@@
- @routine CCTK_SetMainLoopIndex
- @date Sep 22 1999
- @author Thomas Radke
- @desc
- Sets the iteration counter variable of the evolution loop.
- This is used for recovery.
- @enddesc
- @calls
- @calledby
-
-@@*/
-int CCTK_SetMainLoopIndex (int main_loop_index)
-{
- iteration = main_loop_index;
- return iteration;
-}
-
-
- /*@@
- @routine CCTK_MainLoopIndex
- @date Sep 22 1999
- @author Thomas Radke
- @desc
- Returns the iteration counter variable of the evolution loop.
- This is used for checkpointing.
- @enddesc
- @calls
- @calledby
-
-@@*/
-int CCTK_MainLoopIndex (void)
-{
- return (iteration);
-}
-
/*@@
@routine CCTK_RunTitle
@date Sun Sep 17 2000
@@ -88,7 +46,7 @@ int CCTK_RunTitle(int len, char *title)
{
if (CCTK_Equals(cctk_title,""))
{
- strcpy(title,"Cactus Simulation");
+ strncpy(title,"Cactus Simulation",len-1);
}
else
{