aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/restrict_3d_rf2.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-03-21 21:04:57 -0500
committerErik Schnetter <schnetter@cct.lsu.edu>2008-03-21 21:04:57 -0500
commita76cbfe23aa7aecca87b179566fe78ea7a45e320 (patch)
tree4f3e978e27b166ba30108b50702cc95a4d22c91b /Carpet/CarpetLib/src/restrict_3d_rf2.cc
parent8e2769a2bb1a190d5b3b715b745dd30695896b77 (diff)
OpenMP changes:
Use #pragma instead of _Pragma for OpenMP directives. The PGI compilers do not understand the _Pragma syntax. Use int instead of ptrdiff_t for loop variables which are parallelised via OpenMP. The PGI compilers cannot handle ptrdiff_t.
Diffstat (limited to 'Carpet/CarpetLib/src/restrict_3d_rf2.cc')
-rw-r--r--Carpet/CarpetLib/src/restrict_3d_rf2.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/restrict_3d_rf2.cc b/Carpet/CarpetLib/src/restrict_3d_rf2.cc
index e64c4f6e5..26031f304 100644
--- a/Carpet/CarpetLib/src/restrict_3d_rf2.cc
+++ b/Carpet/CarpetLib/src/restrict_3d_rf2.cc
@@ -102,9 +102,9 @@ namespace CarpetLib {
// Loop over coarse region
#pragma omp parallel for
- for (ptrdiff_t k=0; k<regkext; ++k) {
- for (ptrdiff_t j=0; j<regjext; ++j) {
- for (ptrdiff_t i=0; i<regiext; ++i) {
+ for (int k=0; k<regkext; ++k) {
+ for (int j=0; j<regjext; ++j) {
+ for (int i=0; i<regiext; ++i) {
dst [DSTIND3(i, j, k)] = src [SRCIND3(2*i, 2*j, 2*k)];