aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc
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/src/restrict_3d_cc_rf2.cc
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/src/restrict_3d_cc_rf2.cc')
-rw-r--r--Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc b/Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc
index 5fa543604..7eebd36b0 100644
--- a/Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc
+++ b/Carpet/CarpetLib/src/restrict_3d_cc_rf2.cc
@@ -114,6 +114,7 @@ namespace CarpetLib {
// Loop over coarse region
+#pragma omp parallel for
for (int k=0; k<regkext; ++k) {
for (int j=0; j<regjext; ++j) {
for (int i=0; i<regiext; ++i) {