diff --git a/Framework/MDAlgorithms/src/MDNormDirectSC.cpp b/Framework/MDAlgorithms/src/MDNormDirectSC.cpp index 25d4059a3a33a345fd873c9ba80c22c2629e62fe..3ab40e584fe30561848b3b86f702f6f967dc9f85 100644 --- a/Framework/MDAlgorithms/src/MDNormDirectSC.cpp +++ b/Framework/MDAlgorithms/src/MDNormDirectSC.cpp @@ -483,6 +483,7 @@ void MDNormDirectSC::calculateNormalization( std::vector<std::array<double, 4>> intersections; std::vector<coord_t> pos, posNew; auto prog = make_unique<API::Progress>(this, 0.3, 1.0, ndets); +// cppcheck-suppress syntaxError PRAGMA_OMP(parallel for private(intersections, pos, posNew)) for (int64_t i = 0; i < ndets; i++) { PARALLEL_START_INTERUPT_REGION diff --git a/Framework/MDAlgorithms/src/MDNormSCD.cpp b/Framework/MDAlgorithms/src/MDNormSCD.cpp index cfa1e7f8a4bcb2e0b499a10701530d14267919b4..28fc32f209817c2a59b46c7e9022adc01e52cbc5 100644 --- a/Framework/MDAlgorithms/src/MDNormSCD.cpp +++ b/Framework/MDAlgorithms/src/MDNormSCD.cpp @@ -424,6 +424,7 @@ void MDNormSCD::calculateNormalization( std::vector<double> xValues, yValues; std::vector<coord_t> pos, posNew; auto prog = make_unique<API::Progress>(this, 0.3, 1.0, ndets); +// cppcheck-suppress syntaxError PRAGMA_OMP(parallel for private(intersections, xValues, yValues, pos, posNew) if (Kernel::threadSafe(*integrFlux))) for (int64_t i = 0; i < ndets; i++) { PARALLEL_START_INTERUPT_REGION