aboutsummaryrefslogtreecommitdiff
path: root/Carpet/LoopControl/schedule.ccl
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-01-16 14:46:17 -0500
committerErik Schnetter <schnetter@gmail.com>2013-01-16 14:46:17 -0500
commite0ddb73239c73c6de42a01204194173ce65ebff4 (patch)
treed0380bec049f7807836d68a0001f2ec492f62d0e /Carpet/LoopControl/schedule.ccl
parent1cddd960d62da42ccd111022f1326740f688b48d (diff)
LoopControl: Rewrite
Rewrite code in C++. Remove dependency on GSL. Modify algorithm; now traverses arrays bottom-up (by splitting the looping region into equal-sized blocks) instead of top-down (splitting the region into a certain number of blocks) Make multi-threading dynamic Support SMT (hyper-threading), i.e. threads which share the same cache
Diffstat (limited to 'Carpet/LoopControl/schedule.ccl')
-rw-r--r--Carpet/LoopControl/schedule.ccl35
1 files changed, 15 insertions, 20 deletions
diff --git a/Carpet/LoopControl/schedule.ccl b/Carpet/LoopControl/schedule.ccl
index 090da0f5a..6ad9df9eb 100644
--- a/Carpet/LoopControl/schedule.ccl
+++ b/Carpet/LoopControl/schedule.ccl
@@ -1,23 +1,18 @@
# Schedule definitions for thorn LoopControl
-if (check_type_sizes) {
- SCHEDULE lc_check_type_sizes AT startup
- {
- LANG: C
- OPTIONS: meta
- } "Check that sizes of control structures are identical in C and Fortran"
-}
+SCHEDULE lc_setup AT startup BEFORE Driver_Startup
+{
+ LANG: C
+} "Set up LoopControl"
-if (printstats) {
- SCHEDULE lc_printstats_analysis AT analysis
- {
- LANG: C
- OPTIONS: meta
- } "Output loop control statistics"
-
- SCHEDULE lc_printstats_terminate AT terminate
- {
- LANG: C
- OPTIONS: meta
- } "Output loop control statistics"
-}
+SCHEDULE lc_statistics_maybe AT analysis
+{
+ LANG: C
+ OPTIONS: meta
+} "Output LoopControl statistics"
+
+SCHEDULE lc_statistics AT terminate
+{
+ LANG: C
+ OPTIONS: meta
+} "Output LoopControl statistics"