summaryrefslogtreecommitdiff
path: root/src/include/cctk_Schedule.h
diff options
context:
space:
mode:
authorschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2008-04-09 03:37:21 +0000
committerschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2008-04-09 03:37:21 +0000
commita780159bccfd17395ac08e394b1464d7e57fc249 (patch)
tree6fd9ed0b23e9fa4e48d17ca8a65d35ad4b7a3fb7 /src/include/cctk_Schedule.h
parenta9833d5a888148fde04946252e997b4642eb7c47 (diff)
Add IF clauses to schedule items
Schedule items in Cactus can already have WHILE clauses, which means that they are executed while a certain condition are true. This patch adds IF clauses, which means that they are executed only if a certain condition is true. The syntax is equivalent to WHILE clauses. These if clauses is different from the existing C-syntax if statements, which are only evaluated at startup and determine how the schedule is constructed. These if clauses are evaluated every time the schedule is traversed, and can skip certain schedule items. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4478 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Schedule.h')
-rw-r--r--src/include/cctk_Schedule.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/cctk_Schedule.h b/src/include/cctk_Schedule.h
index e8f70dc1..ed6bcb2a 100644
--- a/src/include/cctk_Schedule.h
+++ b/src/include/cctk_Schedule.h
@@ -86,6 +86,7 @@ int CCTK_ScheduleFunction(void *function,
int n_before,
int n_after,
int n_while,
+ int n_if,
...);
int CCTK_ScheduleGroup(const char *name,
@@ -99,6 +100,7 @@ int CCTK_ScheduleGroup(const char *name,
int n_before,
int n_after,
int n_while,
+ int n_if,
...);
int CCTK_ScheduleGroupStorage(const char *group);