aboutsummaryrefslogtreecommitdiff
path: root/schedule.ccl
diff options
context:
space:
mode:
authorgoodale <goodale@b7a48df3-cbbf-4440-997f-b4b717c9f7fc>1999-09-19 14:16:40 +0000
committergoodale <goodale@b7a48df3-cbbf-4440-997f-b4b717c9f7fc>1999-09-19 14:16:40 +0000
commit6fd7bd0617203041a693f60ba61d51fda833fb34 (patch)
treef1a6b3abd1526f918218b03e58ebb917d11f98c7 /schedule.ccl
parentf945f571f73a7fcc5df1a82f185eb0155d2f548c (diff)
New schedule stuff.
IMPORTANT: if you don't have a src/schedule directory, please do an "update -d" or your code won't compile! You can now create schedule groups and schedule items (other groups or functions) IN a group. You may then schedule a group AT a particular CCTK entry point, or inside another group. There is a new keyword WHILE in the schedule specification. The argument(s) to this are the full names of integer scalars, and the item which is scheduled WHILE will be executed while this integer, or these integers, are non-zero. Note that currently there is little checking of the type of these scalars, 'though this will be coming soon. BEFORE, AFTER, or WHILE can take a list of arguments of the form (a,b,c) to stop you having to do something like BEFORE a BEFORE b BEFORE c So the full format of a schedule statement is SCHEDULE [GROUP] <name> <AT entrypoint | IN group> [BEFORE|AFTER <item | (item...)>] [WHILE <integer gridscalar>] { [LANG: <language>] [COMM: <group(s)>] [STORAGE: <groups(s)] [TRIGGERS: <groups(s)] } "<description>" Note that even for a group you need to provide { } "<description>" 'though that may be relaxed soon. Also TRIGGERS are now on a group basis, not on a variable basis. So, for example, to test this I had -------------------------------------- SCHEDULE TEST1_InitialData AT INITIAL { LANG: Fortran } "Initialise" SCHEDULE TEST1_InitialData AT EVOL { LANG: Fortran } "Initialise" SCHEDULE TEST1_Evolve IN testit { LANG: Fortran } "Evolution routine" SCHEDULE GROUP testit WHILE test1::foo_int_scalar AT EVOL AFTER TEST1_InitialData { } "Test a group within a group. " --------------------------------------- where the initialisation routine set test1::foo_int_scalar to 4 and the evolution routine decremented it. The group "testit" is redundant here as only one thing is scheduled in it, the WHILE and AFTER could have gone directly onto the scheduling of TEST1_Evolve. Apart from the checking of the while stuff, the perl does a fair amount of checking that groups exist. It doesn't yet check that a group you are scheduling at or in exists, and neither does the C, so please check the screen output of the final schedule tree. Checks for this an for unreachable groups will go in, but perhaps not in the next week. There's also some tidying up which needs to go in, but this stuff passes all the tests that the unmodified code does. I have also tried to make the output of the CST a bit more useful, 'though now it's a wee bit long-winded. Please send me comments if you want more output of various things, or would like the current output, or how the WHILE stuff works, changed. Tom IMPORTANT: if you don't have a src/schedule directory, please do an "update -d" or your code won't compile! git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/ADMConstraints/trunk@18 b7a48df3-cbbf-4440-997f-b4b717c9f7fc
Diffstat (limited to 'schedule.ccl')
-rw-r--r--schedule.ccl2
1 files changed, 1 insertions, 1 deletions
diff --git a/schedule.ccl b/schedule.ccl
index baa01d9..ee185ba 100644
--- a/schedule.ccl
+++ b/schedule.ccl
@@ -19,7 +19,7 @@ else
LANG: Fortran
STORAGE: ADMconstraints
COMMUNICATION: ADMconstraints
- TRIGGERS: ham,momx,momy,momz
+ TRIGGERS: ADMconstraints
} "Evaluate ADM constraints"
}