diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-03-21 21:04:57 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-03-21 21:04:57 -0500 |
commit | a76cbfe23aa7aecca87b179566fe78ea7a45e320 (patch) | |
tree | 4f3e978e27b166ba30108b50702cc95a4d22c91b /Carpet/CarpetLib/src/copy_3d.cc | |
parent | 8e2769a2bb1a190d5b3b715b745dd30695896b77 (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/copy_3d.cc')
-rw-r--r-- | Carpet/CarpetLib/src/copy_3d.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/copy_3d.cc b/Carpet/CarpetLib/src/copy_3d.cc index 5c9950f50..36a48df40 100644 --- a/Carpet/CarpetLib/src/copy_3d.cc +++ b/Carpet/CarpetLib/src/copy_3d.cc @@ -103,9 +103,9 @@ namespace CarpetLib { // Loop over 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(i, j, k)]; |