6 integer omp_get_thread_num
, foo
7 call omp_set_num_threads (2)
8 !$omp parallel private (id)
9 id
= omp_get_thread_num() + 1
12 ! Check that the two threads are not sharing a location for
13 ! the array x in foo()
14 if (ilocs(1) .eq
. ilocs(2)) stop 1
17 integer function foo ()