Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
5b9e3cbc
Commit
5b9e3cbc
authored
Jan 04, 2012
by
Campbell, Stuart
Browse files
Suppress cppcheck errors for OMP. refs #3868
Add cppcheck suppression comments for syntax errors in OMP DEFINES.
parent
e323e5cf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Code/Mantid/Framework/Algorithms/src/DiffractionFocussing2.cpp
View file @
5b9e3cbc
...
...
@@ -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
++
)
{
...
...
Code/Mantid/Framework/DataHandling/src/LoadEventPreNexus.cpp
View file @
5b9e3cbc
...
...
@@ -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
++
)
{
...
...
Code/Mantid/Framework/MDEvents/src/CentroidPeaksMD.cpp
View file @
5b9e3cbc
...
...
@@ -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
)
{
...
...
Code/Mantid/Framework/MDEvents/src/IntegratePeaksMD.cpp
View file @
5b9e3cbc
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment