Learn R Programming

pbdBASE (version 0.5-3)

g2lcoord: g2lcoord

Description

Global to local coordinates with explicit ownership given.

Usage

g2lcoord(dim, bldim, gi, gj, gridinfo)

Arguments

dim

Global dimension.

bldim

Blocking dimension.

gi, gj

Global row and column indices, respectively.

gridinfo

The return of base.blacs(ICTXT(x)). See the Details section for more information.

Value

For the process that owns the desired local data at global indices (gi, gj), the return is the local index. Otherwise, NA is returned.