-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,42 @@ SUBROUTINE PARA_RANGE (N1,N2,NPROCS,IRANK,ISTA,IEND) | |
if ( iwork2 > irank ) iend = iend + 1 | ||
return | ||
end | ||
!! | ||
!! USAGE: CALL PARA_RANGE2(N1,N2,NPROCS,IRANK,ISTA,IEND)(A) | ||
!! INPUT ARGUMENT LIST: | ||
!! N1 - LAAT INTERATE VALUE I dimension | ||
!! N2 - LAST INTERATE VALUE J dimension | ||
!! NX NUMBER OF subdomains in Z dimension | ||
!! NY NUMBER OF subdomains in Y dimension | ||
!! NX * NY should be the total number of MPI procs | ||
!! NRANK - MY TAKS ID | ||
!! | ||
!! OUTPUT ARGUMENT LIST: | ||
!! ISTA - FIRST LOOP VALUE I | ||
!! IEND - LAST LOOP VALUE I | ||
!! JSTA - FIRST LOOP VALUE J | ||
!! JEND - LAST LOOP VALUE J | ||
!! | ||
!! OUTPUT FILES: | ||
!! STDOUT - RUN TIME STANDARD OUT. | ||
!! | ||
!! SUBPROGRAMS CALLED: | ||
!! UTILITIES: | ||
!! NONE | ||
!! LIBRARY: | ||
!! | ||
!! ATTRIBUTES: | ||
!! LANGUAGE: FORTRAN | ||
!! MACHINE : IBM RS/6000 SP | ||
!! | ||
subroutine para_range2(im,jm,nx,ny,nrank,ista,iend,jsta,jend) | ||
jx=nrank/nx | ||
ix=nrank-(jx*nx) | ||
call para_range(1,im,nx,ix,ista,iend) | ||
call para_range(1,jm,ny,jx,jsta,jend) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
GeorgeVandenberghe-NOAA
Author
Contributor
|
||
print 101,n,ix,jx,ista,iend,jsta,jend | ||
101 format(16i8) | ||
return | ||
end | ||
|
||
|
@GeorgeVandenberghe-NOAA I would think the task ID (the 4th argument) is the same for two calls to para_range.
What do you think?