aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/param.ccl
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-08-21 18:52:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-08-21 18:52:00 +0000
commit28eaf1591b3673641eaa3c7046e8b937edfb221b (patch)
tree8717378af9c6ee7f885484376887a6781e2ed784 /Carpet/CarpetLib/param.ccl
parentb13e77bac146afa79d7855f62bd0433e0b4bb4ed (diff)
CarpetLib: Add support for OpenMP
Add #pragma omp statements for loops in reduction and prolongation operators. Change loop control variables to signed types. Add functions to determine the number of active threads. Add a parameter to set the number of threads if desired. darcs-hash:20070821185237-dae7b-56827b72a69b5fa1b3d1316379a0f155696b4cb2.gz
Diffstat (limited to 'Carpet/CarpetLib/param.ccl')
-rw-r--r--Carpet/CarpetLib/param.ccl8
1 files changed, 8 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/param.ccl b/Carpet/CarpetLib/param.ccl
index f058923a2..4ed749066 100644
--- a/Carpet/CarpetLib/param.ccl
+++ b/Carpet/CarpetLib/param.ccl
@@ -23,6 +23,14 @@ BOOLEAN barriers "Insert barriers at strategic places for debugging purposes (sl
+CCTK_INT num_threads "Number of threads per process" STEERABLE=recover
+{
+ -1 :: "use system default, probably influenced by OMP_NUM_THREADS"
+ 1:* :: "use this many threads"
+} -1
+
+
+
BOOLEAN output_bboxes "Output bounding box information to the screen" STEERABLE=always
{
} "no"