RPN_COMM

(RPN_COMM_topo)


integer function RPN_COMM_topo(nxg,minx,maxx,nxl,nxlmax,
     %                   halox,nx0,alongx,fill)

ARGUMENTS

IN


OUT
 

  • minx maxx : dimensions of the local array needed to contain the local tile
  • nxl : number of local points along axis for this PE
  • nxlmax : maximum of local points along axis for all PE
  • nx0 : Position of the first element of the local PE over nxg

  • DESCRIPTION

    Generate needed information about local tile along a specified axis. The input is the total number of point to divide and the size of the halo. The function will split the domain depending of the topology induced by the PEs.

    For example, a 3x2 PE grid, 23x12 points, halo of 1 along x axis:

    +-+-+-+
    |3|4|5|
    +-+-+-+
    |0|1|2|
    +-+-+-+

    ierr = RPN_COMM_topo(23,minx,maxx,nxl,nxlmax,1,nx0,.true.,.false.)

    minx = 0
    maxx = 10
    nxl = 8 on PE 0,1,3,4, and 7 on PE 2 and 5.
    nxlmax = 8
    nx0 = 1 on PE 0 and 3, 9 on 1 and 4, and 17 on 2 and 5.


    EXAMPLE

        ierr =  RPN_COMM_topo(nxg,minx,maxx,nxl,nxlmax,
         %                   halox,nx0,alongx,fill)

    SEE ALSO

    RPN_COMM_* 

    Return to RPN Libraries home page