summaryrefslogtreecommitdiff
path: root/src/include/cctk_Parameter.h
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-03-14 13:00:36 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-03-14 13:00:36 +0000
commit3e901df5b706b893d9cf672e8ee43ac3fcc415a2 (patch)
tree0dbf96af0190e46dfe4e32a88f06887d5692ac3f /src/include/cctk_Parameter.h
parentb1a447047fda75b35b43a11c6235fd356b854bcd (diff)
Changed interface for CCTK_ParameterWalk() to return both a canonical name
and a pointer the parameter properties. Replaced calls to CCTK_ParameterList() by CCTK_ParameterWalk() in CommandLine.c. CCTK_ParameterList() is gone now. Inserted a line "Parameters of thorn 'BLA' providing implementation 'LABER':" in the -O output. Should be easily filtered out for automatic postprocessing. Option -o now prints out both "thorn::param" and "impl::param" as full names for global/restricted parameters. #ifdef'd out ParameterPTreeNodeAdd() in Parameters.c to fix a compiler warning (unused static function). Thomas git-svn-id: http://svn.cactuscode.org/flesh/trunk@1470 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Parameter.h')
-rw-r--r--src/include/cctk_Parameter.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/include/cctk_Parameter.h b/src/include/cctk_Parameter.h
index fa024c8f..caff98e1 100644
--- a/src/include/cctk_Parameter.h
+++ b/src/include/cctk_Parameter.h
@@ -121,17 +121,14 @@ char *CCTK_ParameterValString (const char *name, /* The name of the parameter
const char *thorn); /* The originating thorn */
/* walk through list of parameters */
-char *CCTK_ParameterWalk(int first, /* Get first parameter or not */
- const char *origin); /* Origin of this walk */
-
-/* get list of parameter names for given thorn */
-int CCTK_ParameterList (const char* thorn,
- char ***paramlist,
- int *n_param);
-
-/* get parameter properties for gven parameter/thorn pair */
-cParamData *CCTK_ParameterData (const char *name,
- const char *thorn);
+int CCTK_ParameterWalk(int first, /* Get first parameter or not */
+ const char *origin, /* Origin of this walk */
+ char **pfullname, /* Address of string pointer */
+ const cParamData **pdata); /* Address of parameter data ptr */
+
+/* get parameter properties for given parameter/thorn pair */
+const cParamData *CCTK_ParameterData (const char *name,
+ const char *thorn);
#ifdef __cplusplus
}