I am trying to call a function (REAL*8) within OpenMP constructs. It throws Access Violation (157) in the first execution line of the function. I suspect it could be due to access of same variable/memory address by all threads, but not sure. Does the function needs any special treatment or declaration to be called within parallel !$OMP constructs? Please help.