diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-01-24 23:58:39 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-01-24 23:58:39 +0000 |
commit | 649e32ea1c68ce0c5ad3e447fd80ae9faa307e58 (patch) | |
tree | 1973e84685c22e22ea67246184bcfcb7f8961dbf /src/include | |
parent | bea2868e3ab0934c56a3c27b473426a5135ad966 (diff) |
Changes towards having the call function passed in from outside.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1282 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/cctk_Schedule.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/include/cctk_Schedule.h b/src/include/cctk_Schedule.h index 4f8cffad..1f0ca6a4 100644 --- a/src/include/cctk_Schedule.h +++ b/src/include/cctk_Schedule.h @@ -5,11 +5,30 @@ @desc Routines for creating schedule stuff. @enddesc + @version $Header$ @@*/ #ifndef _CCTK_SCHEDULE_H_ #define _CCTK_SCHEDULE_H_ +typedef enum {LangNone, LangC, LangFortran} cLanguage; + +typedef enum {FunctionNoArgs, FunctionStandard} cFunctionType; + +typedef struct +{ + cLanguage language; + + int (*FortranCaller)(cGH *, void *); + + cFunctionType type; + + int n_SyncGroups; + + int *SyncGroups; + +} cFunctionData; + #ifdef __cplusplus extern "C" { #endif @@ -46,13 +65,17 @@ int CCTK_ScheduleGroupStorage(const char *group); int CCTK_ScheduleGroupComm(const char *group); -int CCTK_ScheduleTraverse(const char *where, void *GH); +int CCTK_ScheduleTraverse(const char *where, + void *GH, + int (*calling_function)(void *, void *, void *)); int CCTK_ScheduleGHInit(void *GH); int CCTK_SchedulePrint(const char *where); int CCTK_SchedulePrintTimes(const char *where); +cLanguage CCTK_TranslateLanguage(const char *sval); + #ifdef __cplusplus } #endif |