Commit 5b9e3cbc authored by Campbell, Stuart's avatar Campbell, Stuart
Browse files

Suppress cppcheck errors for OMP. refs #3868

Add cppcheck suppression comments for syntax errors in OMP DEFINES.
parent e323e5cf
......@@ -401,6 +401,7 @@ void DiffractionFocussing2::execEvent()
int chunkSize = 200;
// cppcheck-suppress syntaxError
PRAGMA_OMP(parallel for schedule(dynamic, 1) )
for (int wiChunk=0;wiChunk<(totalHistProcess/chunkSize)+1;wiChunk++)
{
......
......@@ -533,6 +533,7 @@ void LoadEventPreNexus::procEvents(DataObjects::EventWorkspace_sptr & workspace)
buffers.resize(numThreads);
eventVectors = new EventVector_pt *[numThreads];
// cppcheck-suppress syntaxError
PRAGMA_OMP( parallel for if (parallelProcessing) )
for (int i=0; i < int(numThreads); i++)
{
......
......@@ -109,6 +109,7 @@ namespace MDEvents
/// Radius to use around peaks
double PeakRadius = getProperty("PeakRadius");
// cppcheck-suppress syntaxError
PRAGMA_OMP(parallel for schedule(dynamic, 10) )
for (int i=0; i < int(peakWS->getNumberPeaks()); ++i)
{
......
......@@ -124,6 +124,7 @@ namespace MDEvents
if (BackgroundStartRadius < PeakRadius)
BackgroundStartRadius = PeakRadius;
// cppcheck-suppress syntaxError
PRAGMA_OMP(parallel for schedule(dynamic, 10) )
for (int i=0; i < int(peakWS->getNumberPeaks()); ++i)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment