I know what document says about using OMP with FORTRAN 'DO WHILE' loop: do not ever use !$OPM PARALLEL DO.
So my question is not about using "!$OPM PARALLEL DO" with DO WHILE loop.
Say, I have a real situation where I can only use 'DO WHILE' loop, and a conversion to normal DO loop is not even possible, can I still use
DO WHILE (.logical expr.)
!$OPM TASK UNTIED
some code in the loop....
!$OPM END TASK
!$OPM END PARALLEL
Anything wrong with this? pitfall potentially?
How about OMP sections and section? Any examples?
Any pointer will help.