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

◆ indxg2l()

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

Definition at line 1 of file indxg2l.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* INDXG2L computes the local index of a distributed matrix entry
16* pointed to by the global index INDXGLOB.
17*
18* Arguments
19* =========
20*
21* INDXGLOB (global input) INTEGER
22* The global index of the distributed matrix entry.
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 (local dummy) INTEGER
33* Dummy argument in this case in order to unify the calling
34* sequence of the tool-routines.
35*
36* NPROCS (global input) INTEGER
37* The total number processes over which the distributed
38* matrix is distributed.
39*
40* =====================================================================
41*
42* .. Intrinsic Functions ..
43 INTRINSIC mod
44* ..
45* .. Executable Statements ..
46*
47 indxg2l = nb*((indxglob-1)/(nb*nprocs))+mod(indxglob-1,nb)+1
48*
49 RETURN
50*
51* End of INDXG2L
52*
integer function indxg2l(indxglob, nb, iproc, isrcproc, nprocs)
Definition indxg2l.f:2
Here is the call graph for this function:
Here is the caller graph for this function: