SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ indxg2p()

integer function indxg2p ( integer  indxglob,
integer  nb,
integer  iproc,
integer  isrcproc,
integer  nprocs 
)

Definition at line 1 of file indxg2p.f.

2*
3* -- ScaLAPACK tools routine (version 1.7) --
4* University of Tennessee, Knoxville, Oak Ridge National Laboratory,
5* and University of California, Berkeley.
6* May 1, 1997
7*
8* .. Scalar Arguments ..
9 INTEGER INDXGLOB, IPROC, ISRCPROC, NB, NPROCS
10* ..
11*
12* Purpose
13* =======
14*
15* INDXG2P computes the process coordinate which posseses the entry of a
16* distributed matrix specified by a global index INDXGLOB.
17*
18* Arguments
19* =========
20*
21* INDXGLOB (global input) INTEGER
22* The global index of the element.
23*
24* NB (global input) INTEGER
25* Block size, size of the blocks the distributed matrix is
26* split into.
27*
28* IPROC (local dummy) INTEGER
29* Dummy argument in this case in order to unify the calling
30* sequence of the tool-routines.
31*
32* ISRCPROC (global input) INTEGER
33* The coordinate of the process that possesses the first
34* row/column of the distributed matrix.
35*
36* NPROCS (global input) INTEGER
37* The total number processes over which the matrix is
38* distributed.
39*
40* =====================================================================
41*
42* .. Intrinsic Functions ..
43 INTRINSIC mod
44* ..
45* .. Executable Statements ..
46*
47 indxg2p = mod( isrcproc + (indxglob - 1) / nb, nprocs )
48*
49 RETURN
50*
51* End of INDXG2P
52*
integer function indxg2p(indxglob, nb, iproc, isrcproc, nprocs)
Definition indxg2p.f:2
Here is the call graph for this function:
Here is the caller graph for this function: