summaryrefslogtreecommitdiff
path: root/src/main/ConfigData.c
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-11-05 14:58:55 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-11-05 14:58:55 +0000
commit7429addb5b7f80c1035b59afa239996ff1a58c65 (patch)
tree1ba6dde297325a705161420eacd2a2151db10fa5 /src/main/ConfigData.c
parent295247798ad3e1ef841ac7e04d219ac3cb146e8b (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/ConfigData.c')
-rw-r--r--src/main/ConfigData.c80
1 files changed, 23 insertions, 57 deletions
diff --git a/src/main/ConfigData.c b/src/main/ConfigData.c
index ec0fb572..8534acac 100644
--- a/src/main/ConfigData.c
+++ b/src/main/ConfigData.c
@@ -2,10 +2,10 @@
@file ConfigData.c
@date Fri Jan 15 13:27:50 1999
@author Tom Goodale
- @desc
- Miscellaneous routines to deal with configuration data
+ @desc
+ Miscellaneous routines to deal with configuration data
@enddesc
- @version $Header$
+ @version $Id$
@@*/
#include <stdio.h>
@@ -17,74 +17,45 @@ static const char *rcsid = "$Header$";
CCTK_FILEVERSION(main_ConfigData_c)
-/********************************************************************
- ********************* Local Data Types ***********************
- ********************************************************************/
-
-/********************************************************************
- ********************* Local Routine Prototypes *********************
- ********************************************************************/
-
-/********************************************************************
- ********************* Other Routine Prototypes *********************
- ********************************************************************/
-
-/********************************************************************
- ********************* Local Data *****************************
- ********************************************************************/
-
-/********************************************************************
- ********************* External Routines **********************
- ********************************************************************/
/*@@
@routine CCTKi_AddGH
@date Fri Jan 15 13:43:11 1999
@author Tom Goodale
@desc
- Adds a GH to the config_data structure at a particular convergence level.
+ Adds a GH to the config_data structure at a particular
+ convergence level.
@enddesc
- @calls
- @calledby
- @history
-
- @endhistory
- @var config
- @vdesc Flesh config data
- @vtype tFleshConfig
- @vio in
- @vcomment
+ @var config
+ @vdesc Flesh config data
+ @vtype tFleshConfig *
+ @vio in
@endvar
- @var convergence_level
- @vdesc The convergence level
- @vtype int
- @vio in
- @vcomment
-
+ @var convergence_level
+ @vdesc The convergence level
+ @vtype unsigned int
+ @vio in
@endvar
- @var GH
- @vdesc the cctk GH
- @vtype cGH *
- @vio in
- @vcomment
-
+ @var GH
+ @vdesc the cctk GH
+ @vtype cGH *
+ @vio in
@endvar
@returntype int
@returndesc
- 0 - success
- 1 - memory failure
- 2 - duplicate convergence level
+ 0 - success
+ 1 - memory failure
+ 2 - duplicate convergence level
@endreturndesc
@@*/
-int CCTKi_AddGH(tFleshConfig *config, int convergence_level, cGH *GH)
+int CCTKi_AddGH (tFleshConfig *config, unsigned int convergence_level, cGH *GH)
{
int retval;
-
+ unsigned int i;
cGH **temp;
- int i;
retval = 0;
@@ -117,10 +88,5 @@ int CCTKi_AddGH(tFleshConfig *config, int convergence_level, cGH *GH)
retval = 2;
}
- return retval;
+ return (retval);
}
-
-/********************************************************************
- ********************* Local Routines *************************
- ********************************************************************/
-