Computational Chemistry -- fpppp #2b
Private variables are initialized by each thread
Iterations are handed out by parallel do
Schedule handing out of iterations to minimize load imbalance
SUBROUTINE TWLDRV(..., VEE,FXYZ, ...)
C BEGIN LOOPS OVER SHELLS
!$omp& shared(VEE, ... ,FXYZ)
!$omp& shared(<about 80 shared>)
!$omp& private(<about 180 private>)
!$omp& private(VEE_LOCAL, ...)
!$omp do schedule(dynamic, 1)
DO 1001 ISHELL=NSHELL,1,-1
. . . <about 1000 lines of code> . . .