summaryrefslogtreecommitdiff
path: root/src/main/Termination.c
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-09-20 21:44:56 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-09-20 21:44:56 +0000
commitd8c45557a875ce72ad86ce0905a4afb1731c9516 (patch)
treec1017dc4aaf46ebeb2e40c01b8db13ee788fa4e9 /src/main/Termination.c
parent69f2e0710ec9088e0a1120f5f773493034a2003e (diff)
Make 'cGH *' argument to CCTK_TerminateNext() and CCTK_TerminationReached()
a const pointer. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2371 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/Termination.c')
-rw-r--r--src/main/Termination.c81
1 files changed, 34 insertions, 47 deletions
diff --git a/src/main/Termination.c b/src/main/Termination.c
index be317acf..785a4ab8 100644
--- a/src/main/Termination.c
+++ b/src/main/Termination.c
@@ -2,40 +2,26 @@
@file Termination.c
@date Thu March 15 7pm
@author Gabrielle Allen
- @desc
- Termination conditions
- @enddesc
- @version $Header$
+ @desc
+ Termination conditions
+ @enddesc
+ @version $Id$
@@*/
-#include <stdio.h>
-#include <stdlib.h>
-
#include "cctk_Flesh.h"
-#include "cctk_Parameter.h"
-
-#include "cctk_Main.h"
-#include "cctk_IO.h"
+#include "cctk_Termination.h"
static const char *rcsid="$Header$";
CCTK_FILEVERSION(main_Termination_c)
/********************************************************************
- ********************* Local Data Types ***********************
- ********************************************************************/
-
-/********************************************************************
********************* Local Data *****************************
********************************************************************/
static int termination_reached = 0;
/********************************************************************
- ********************* Local Routine Prototypes *********************
- ********************************************************************/
-
-/********************************************************************
********************* External Routines **********************
********************************************************************/
@@ -43,43 +29,44 @@ static int termination_reached = 0;
@routine CCTK_TerminationReached
@date Thu March 15 7pm
@author Gabrielle Allen
- @desc
- Returns true if Cactus will terminate on the next iteration
- @enddesc
- @calls
- @calledby
- @history
- @hdate @hauthor
- @hdesc
- @endhistory
+ @desc
+ Returns true if Cactus will terminate on the next iteration.
+ @enddesc
+ @var GH
+ @vdesc pointer to CCTK grid hierarchy
+ @vtype const cGH *
+ @vio in
+ @endvar
+ @returntype int
+ @returndesc
+ true (1) or false (0)
+ @endreturndesc
@@*/
-int CCTK_TerminationReached(cGH *GH)
+int CCTK_TerminationReached (const cGH *GH)
{
- return termination_reached;
+ GH = GH;
+
+ return (termination_reached);
}
-
+
+
/*@@
@routine CCTK_TerminateNext
@date Thu March 15 7pm
@author Gabrielle Allen
- @desc
- Sets termination for next iteration
- @enddesc
- @calls
- @calledby
- @history
- @hdate @hauthor
- @hdesc
- @endhistory
-
+ @desc
+ Sets termination for next iteration.
+ @enddesc
+ @var GH
+ @vdesc pointer to CCTK grid hierarchy
+ @vtype const cGH *
+ @vio in
+ @endvar
@@*/
-void CCTK_TerminateNext(cGH *GH)
+void CCTK_TerminateNext (const cGH *GH)
{
+ GH = GH;
+
termination_reached = 1;
}
-
-/********************************************************************
- ********************* Local Routines *************************
- ********************************************************************/
-