summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-09-16 17:21:57 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>1999-09-16 17:21:57 +0000
commit9434cc41b43de62d0914de9dfd567a684057982d (patch)
tree1dc56b1b4f37d9d132950b62ed6f377243de9b8a /src
parentf22407251a90f727905140c8945532daf747e616 (diff)
More scheduling stuff.
Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@935 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src')
-rw-r--r--src/include/cctk_schedule.h49
-rw-r--r--src/include/cctki_schedule.h15
2 files changed, 62 insertions, 2 deletions
diff --git a/src/include/cctk_schedule.h b/src/include/cctk_schedule.h
new file mode 100644
index 00000000..fe2aa9ee
--- /dev/null
+++ b/src/include/cctk_schedule.h
@@ -0,0 +1,49 @@
+ /*@@
+ @header cctk_schedule.h
+ @date Thu Sep 16 19:05:27 1999
+ @author Tom Goodale
+ @desc
+ Routines for creating schedule stuff.
+ @enddesc
+ @@*/
+
+#ifndef _CCTK_SCHEDULE_H_
+#define _CCTK_SCHEDULE_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int CCTK_ScheduleFunction(void *function,
+ const char *name,
+ const char *thorn,
+ const char *implementation,
+ const char *description,
+ const char *where,
+ const char *language,
+ int n_mem_groups,
+ int n_comm_groups,
+ int n_trigger_groups,
+ int n_before,
+ int n_after,
+ int n_while,
+ ...);
+
+int CCTK_ScheduleGroup(const char *name,
+ const char *thorn,
+ const char *implementation,
+ const char *description,
+ const char *where,
+ int n_mem_groups,
+ int n_comm_groups,
+ int n_trigger_groups,
+ int n_before,
+ int n_after,
+ int n_while,
+ ...);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /*_CCTK_SCHEDULE_H_*/
diff --git a/src/include/cctki_schedule.h b/src/include/cctki_schedule.h
index 2b49af43..2310c852 100644
--- a/src/include/cctki_schedule.h
+++ b/src/include/cctki_schedule.h
@@ -30,7 +30,8 @@ typedef struct T_SCHED_MODIFIER
extern "C" {
#endif
-t_sched_modifier *CCTKi_ScheduleAddModifer(t_sched_modifier *orig,
+/* Routines to create items */
+t_sched_modifier *CCTKi_ScheduleAddModifier(t_sched_modifier *orig,
const char *modifier,
const char *argument);
@@ -41,11 +42,21 @@ int CCTKi_ScheduleFunction(const char *gname,
void *attributes);
int CCTKi_ScheduleGroup(const char *gname,
- const char *thisname, t_sched_modifier *modifiers,
+ const char *thisname,
+ t_sched_modifier *modifiers,
void *attributes);
+/* Routine to sort the groups - must be called before traversal. */
int CCTKi_ScheduleSortAllGroups(void);
+/* Traversal routine */
+int CCTKi_ScheduleTraverse(const char *group_name,
+ int (*item_entry)(void *, void *),
+ int (*item_exit)(void *, void *),
+ int (*while_check)(int, char **, void *, void *),
+ int (*function_process)(void *, void *, void *),
+ void *data);
+
#ifdef __cplusplus
}
#endif