# blacs_gridinfo

Returns information on the current grid.

## Syntax

call blacs_gridinfo( icontxt, nprow, npcol, myprow, mypcol )

## Input Parameters

icontxt | INTEGER. Integer handle that indicates the context.

## Output Parameters

nprow | INTEGER. Number of process rows in the current process grid.
npcol | INTEGER. Number of process columns in the current process grid.
myprow | INTEGER. Row coordinate of the calling process in the process grid.
mypcol | INTEGER. Column coordinate of the calling process in the process grid.

## Description

This routine returns information on the current grid. If the context handle does not point at a valid context, all quantities are returned as -1.

## See Also

BLACS Routines Usage Example
Parent topic: Informational Routines