Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
c9843182
Commit
c9843182
authored
Mar 19, 2020
by
Uwe Schulzweida
Browse files
Removed omp simd (wrong result with intel 18.0.5).
parent
84012105
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/array.cc
View file @
c9843182
...
...
@@ -85,9 +85,13 @@ varrayMinMaxSum(const size_t len, const Varray<T> &array, double &rmin, double &
{
// rmin, rmax and rsum will be initialized in Info
/*
gnu 9.2.0: correct result
intel 18.0.5: wrong result
#ifdef HAVE_OPENMP4
#pragma omp simd reduction(+:rsum) reduction(min:rmin) reduction(max:rmax)
#endif
*/
for
(
size_t
i
=
0
;
i
<
len
;
++
i
)
{
if
(
array
[
i
]
<
rmin
)
rmin
=
array
[
i
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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