aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/prolongate_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
commit0a5da5fb219de1e4c6916183ac41d29cf79a2533 (patch)
tree8717378af9c6ee7f885484376887a6781e2ed784 /Carpet/CarpetLib/src/prolongate_3d_cc_rf2.cc
parentd8a293410a6e69e4044e89fdfb6b42aa0c46a5a7 (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/prolongate_3d_cc_rf2.cc')
-rw-r--r--Carpet/CarpetLib/src/prolongate_3d_cc_rf2.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/Carpet/CarpetLib/src/prolongate_3d_cc_rf2.cc b/Carpet/CarpetLib/src/prolongate_3d_cc_rf2.cc
index 751380e53..f58295560 100644
--- a/Carpet/CarpetLib/src/prolongate_3d_cc_rf2.cc
+++ b/Carpet/CarpetLib/src/prolongate_3d_cc_rf2.cc
@@ -120,6 +120,7 @@ namespace CarpetLib {
+#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) {
@@ -252,6 +253,7 @@ namespace CarpetLib {
+#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) {