FNLMath : Utilities : ScaLAPACK_GETDIM
ScaLAPACK_GETDIM
For a detailed description of MPI Requirements see “Using ScaLAPACK Enhanced Routines” in the Introduction of this manual.
This routine calculates the row and column dimensions of a local distributed array based on the size of the array to be distributed and the row and column blocking factors to be used. All processors in the BLACS context call the routine.
Required Arguments
M — The row dimension of the global array for which the local array dimensions are to be calculated. (Input)
N — The column dimension of the global array for which the local array dimensions are to be calculated. (Input)
MB — The row blocking factor to be used in distributing the array. (Input)
NB — The column blocking factor to be used in distributing the array. (Input)
MXLDA — The row dimension of the local array. (Output)
MXCOL — The column dimension of the local array. (Output)
FORTRAN 90 Interface
Generic: CALL ScaLAPACK_GETDIM (M, N, MB, NB, MXLDA, MXCOL)
Description
Subroutine ScaLAPACK_GETDIM calculates the row and column dimensions of a local array by using the ScaLAPACK utility NUMROC.
Note that ScaLAPACK_SETUP must be called prior to calling this routine because ScaLAPACK_GETDIM will use some of the global entities defined by ScaLAPACK_SETUP.
Example