summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-12-27 19:13:18 +0000
committerallen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-12-27 19:13:18 +0000
commit2c9acfabed91514d28d3ff0d308db1e4444cbb83 (patch)
tree2de332cb28151a1cd693199453b29274f9565477
parent7204203082ef38dba2809c1a2ce1739cb4aced56 (diff)
Adding prototypes for new functions to return IO methods, interp and reduce
operator names from their handle git-svn-id: http://svn.cactuscode.org/flesh/trunk@2532 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r--src/include/cctk_IOMethods.h4
-rw-r--r--src/include/cctk_Interp.h2
-rw-r--r--src/include/cctk_Reduction.h2
3 files changed, 8 insertions, 0 deletions
diff --git a/src/include/cctk_IOMethods.h b/src/include/cctk_IOMethods.h
index 1d4aef77..c4d0831d 100644
--- a/src/include/cctk_IOMethods.h
+++ b/src/include/cctk_IOMethods.h
@@ -18,6 +18,7 @@ extern "C" {
struct IOMethod
{
const char *implementation;
+ const char *name;
int (*OutputGH) (const cGH *GH);
int (*OutputVarAs) (const cGH *GH, const char *vname, const char *alias);
int (*TriggerOutput) (const cGH *GH, int vindex);
@@ -39,6 +40,9 @@ int CCTK_RegisterIOMethodOutputVarAs (int handle,
const char *alias));
const char *CCTK_IOMethodImplementation (int handle);
+
+const char *CCTK_IOMethod (int handle);
+
int CCTK_NumIOMethods (void);
#ifdef __cplusplus
diff --git a/src/include/cctk_Interp.h b/src/include/cctk_Interp.h
index 4bdfb6cf..c010ec69 100644
--- a/src/include/cctk_Interp.h
+++ b/src/include/cctk_Interp.h
@@ -81,6 +81,8 @@ int CCTK_InterpLocal (cGH *GH,
const char *CCTK_InterpOperatorImplementation(int handle);
+const char *CCTK_InterpOperator(int handle);
+
int CCTK_NumInterpOperators(void);
#ifdef __cplusplus
diff --git a/src/include/cctk_Reduction.h b/src/include/cctk_Reduction.h
index b43ec083..78a395b9 100644
--- a/src/include/cctk_Reduction.h
+++ b/src/include/cctk_Reduction.h
@@ -72,6 +72,8 @@ int CCTK_RegisterReductionArrayOperator(
const char *CCTK_ReduceOperatorImplementation(int handle);
+const char *CCTK_ReduceOperator (int handle);
+
int CCTK_NumReduceOperators(void);
/* FIXME: old interface - should go */