I get a variable "NAN", this variable is a shared one which used in subroutine1 . and in subroutine1 variable = variable + 1 when the subroutine1 is called each time.
Again, hard to say, without having the actual code... just "side" questions: variable should be REAL, DOUBLE, or some floating point type, right? do you protect the assignment with any synchronization? I suggest critical. If the problem persists... well I think I would need the actual code, but I cannot give by granted I would be able to find any bug, however...
hi Fernando, most of variables are double precison data except satid, here I give you the doloop block which thought to be erroneous
!!arrays used in the lower loop are the shared arrays(zdp,lon,sod,lat,oldtec21)
!$OMP PARALLEL DO DEFAULT(SHARED) &
the general construct for the doloop is upper , can you give me some advices?