- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello All,
I am currently dealing with the operator .AND. in an OpenMP reduction clause in Fortran. Does anybody know how this reduction works?Thanks,
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Something like
use ieee_arithmetic
logical result
real a(n)
a = .....
!dir$ omp parallel do reduction(.and. : result)
do i=1,n
result = result .and. .not. ieee_isnan(a(i))
enddo
Do you have an example which is not working?
use ieee_arithmetic
logical result
real a(n)
a = .....
!dir$ omp parallel do reduction(.and. : result)
do i=1,n
result = result .and. .not. ieee_isnan(a(i))
enddo
Do you have an example which is not working?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Something like
use ieee_arithmetic
logical result
real a(n)
a = .....
!dir$ omp parallel do reduction(.and. : result)
do i=1,n
result = result .and. .not. ieee_isnan(a(i))
enddo
Do you have an example which is not working?
use ieee_arithmetic
logical result
real a(n)
a = .....
!dir$ omp parallel do reduction(.and. : result)
do i=1,n
result = result .and. .not. ieee_isnan(a(i))
enddo
Do you have an example which is not working?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you.
Your post was very helpful, It works.
Noemig4
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page