From 22ae969dd0db6b1f087b46d2f9e4ccb4ca154b4f Mon Sep 17 00:00:00 2001 From: schnetter Date: Wed, 18 Nov 2009 18:31:56 +0000 Subject: Correct OpenMP syntax error git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Slab/trunk@67 2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8 --- src/slab.cc | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/src/slab.cc b/src/slab.cc index a60eebc..037c298 100644 --- a/src/slab.cc +++ b/src/slab.cc @@ -755,23 +755,24 @@ copy_data (const vector &info, assert(srcptr); # pragma omp parallel for - { - int ipos[SLAB_MAXDIM]; - for (ipos[2] = 0; ipos[2] < srcdetaillenk; ++ipos[2]) { - for (ipos[1] = 0; ipos[1] < srcdetaillenj; ++ipos[1]) { - for (ipos[0] = 0; ipos[0] < srcdetailleni; ++ipos[0]) { - int const srcindi = srcdetailoffi + ipos[0] - srcoffi; - int const srcindj = srcdetailoffj + ipos[1] - srcoffj; - int const srcindk = srcdetailoffk + ipos[2] - srcoffk; - ifcheck assert (srcindi>=0 and srcindi=0 and srcindj=0 and srcindk=0 and srcindi=0 and srcindj=0 and srcindk