diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2011-07-05 09:15:12 -0400 |
---|---|---|
committer | Barry Wardell <barry.wardell@gmail.com> | 2011-12-14 19:54:45 +0000 |
commit | 5ce764af71f43b21ad94db223058d4ca5896c9fe (patch) | |
tree | 0771445967935482f2bf56293accdd6449cc6a27 /Carpet/LoopControl/schedule.ccl | |
parent | ff9f188dad033ae37ed447245be8fd38a654aff9 (diff) |
LoopControl: Make selftest conditional on a parameter
Make selftest conditional on a new parameter do_selftest.
Use atomic OpenMP statements in selftest.
Diffstat (limited to 'Carpet/LoopControl/schedule.ccl')
-rw-r--r-- | Carpet/LoopControl/schedule.ccl | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/Carpet/LoopControl/schedule.ccl b/Carpet/LoopControl/schedule.ccl index c8eb1233c..c1b74863a 100644 --- a/Carpet/LoopControl/schedule.ccl +++ b/Carpet/LoopControl/schedule.ccl @@ -8,16 +8,21 @@ if (check_type_sizes) { } "Check that sizes of control structures are identical in C and Fortran" } -SCHEDULE lc_selftest AT basegrid -{ - LANG: C +if (do_selftest) { STORAGE: selftest -} "Perform some self-checks" -SCHEDULE lc_selftest AT postregrid -{ - LANG: C - STORAGE: selftest -} "Perform some self-checks" + + SCHEDULE lc_selftest AT basegrid + { + LANG: C + OPTIONS: global loop-local + } "Perform some self-checks" + + SCHEDULE lc_selftest AT postregrid + { + LANG: C + OPTIONS: global loop-local + } "Perform some self-checks" +} if (printstats) { SCHEDULE lc_printstats_analysis AT analysis |