IMPACT T
Data Types | Functions/Subroutines
pgrid2dclass Module Reference

This class construct a logical 2-D Cartesian processor grid. More...

Data Types

type  pgrid2d
 

Functions/Subroutines

subroutine construct_pgrid2d (this, comm, nrow, ncol)
 set up 2-D Cartisian grid. More...
 
subroutine getcomm_pgrid2d (this, comm2d, commcol, commrow)
 get 2D, column, and row communicators. More...
 
subroutine getpost_pgrid2d (this, mypos, mycolpos, myrowpos)
 get my rank position in 2d, column, and row communicators. More...
 
subroutine getsize_pgrid2d (this, totsize, colsize, rowsize)
 get the total number of PEs, PEs in column and row communicators. More...
 

Detailed Description

This class construct a logical 2-D Cartesian processor grid.

Author
Ji Qiang

Data Type Documentation

◆ pgrid2dclass::pgrid2d

type pgrid2dclass::pgrid2d
Data Fields
integer col_comm comunicator for my col
integer comm_2d comunicator for entire grid
integer my_col my column number
integer my_row my row number
integer myrank my rank in the grid comm
integer np total number of processors
integer npcol number of processors in my col
integer nprow number of processors in my row
integer row_comm comunicator for my row

Function/Subroutine Documentation

◆ construct_pgrid2d()

subroutine pgrid2dclass::construct_pgrid2d ( type (pgrid2d), intent(out)  this,
integer, intent(in)  comm,
integer, intent(in)  nrow,
integer, intent(in)  ncol 
)

set up 2-D Cartisian grid.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getcomm_pgrid2d()

subroutine pgrid2dclass::getcomm_pgrid2d ( type (pgrid2d), intent(in)  this,
integer, intent(out)  comm2d,
integer, intent(out)  commcol,
integer, intent(out)  commrow 
)

get 2D, column, and row communicators.

Here is the caller graph for this function:

◆ getpost_pgrid2d()

subroutine pgrid2dclass::getpost_pgrid2d ( type (pgrid2d), intent(in)  this,
integer, intent(out)  mypos,
integer, intent(out)  mycolpos,
integer, intent(out)  myrowpos 
)

get my rank position in 2d, column, and row communicators.

Here is the caller graph for this function:

◆ getsize_pgrid2d()

subroutine pgrid2dclass::getsize_pgrid2d ( type (pgrid2d), intent(in)  this,
integer, intent(out)  totsize,
integer, intent(out)  colsize,
integer, intent(out)  rowsize 
)

get the total number of PEs, PEs in column and row communicators.

Here is the caller graph for this function: