From e85e80bdb8bf5a32c017c2c89eebaea96b25980b Mon Sep 17 00:00:00 2001 From: rhaas Date: Mon, 16 Jul 2012 19:12:39 +0000 Subject: add parameters to reverse un-enforced Cactus schedule ordering This patch adds two new parameters to the flesh: * schedule_sort_mode - which affects the order of schedule items before enforcing BEFORE/AFTER * schedule_sort_warnings - which outputs warnings if a schedule item refers to a non-existing item in its BEFORE/AFTER modifiers Neither one is intended to be used in production runs but they are useful for debugging a schedule. schedule_sort_warnings is intended to catch typos in dependency names and when one tries to order with respect to items hidden within a group. It will find a number of false positives for items that are only scheduled based on parameter settings. Eg. MoL's RHS NaN checker. schedule_sort_mode can be used to ensure that the schedule order does not depend on the (semi-random) order that Cactus generates for non-enforced ordering. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4845 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/param.ccl | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/param.ccl') diff --git a/src/param.ccl b/src/param.ccl index 8b6929b7..5746f0bf 100644 --- a/src/param.ccl +++ b/src/param.ccl @@ -91,6 +91,18 @@ KEYWORD recovery_mode "How to behave when recovering from a checkpoint" STEERABL "relaxed" :: "Recover variables if possible, after INITIAL timebins have been scheduled" } "strict" +# these options are intended to help debugging schedule files. Do not rely on +# them to ensure any particular ordering. +KEYWORD schedule_sort_mode "How to behave when no explicit ordering is prescribed between itemse" STEERABLE=RECOVER +{ + "none" :: "no special ordering is enforced" + "ascending" :: "sorted alphabetically by thorn name and item name" + "descending" :: "sorted in reverse alphabetical order by thorn name and item name" +} "none" + +BOOLEAN schedule_sort_warnings "Output warnings if a schedule item refers to a non-existing item for ordering" +{ +} "no" restricted: -- cgit v1.2.3