6 SUBROUTINE pmpim2( IL, IU, NPROCS, PMYILS, PMYIUS )
15 INTEGER PMYILS( * ), PMYIUS( * )
18 INTEGER IL, IU, M, NPROCS, PRCCTR
50 IF ( nprocs.GT.m )
THEN
51 DO 10 prcctr = 0, nprocs-1
52 IF ( prcctr.LT.m )
THEN
53 pmyils(prcctr+1) = prcctr + il
54 pmyius(prcctr+1) = prcctr + il
61 DO 20 prcctr = 0, nprocs-1
62 pmyils(prcctr+1) = (prcctr * (m / nprocs)) + il
63 IF (prcctr.LT.mod(m, nprocs))
THEN
64 pmyils(prcctr+1) = pmyils(prcctr+1) + prcctr
65 pmyius(prcctr+1) = pmyils(prcctr+1) + m / nprocs
67 pmyils(prcctr+1) = pmyils(prcctr+1) + mod(m, nprocs)
68 pmyius(prcctr+1) = pmyils(prcctr+1) + m / nprocs - 1