ScaLAPACK 2.1  2.1
ScaLAPACK: Scalable Linear Algebra PACKage
indxg2l.f
Go to the documentation of this file.
1  INTEGER FUNCTION indxg2l( INDXGLOB, NB, IPROC, ISRCPROC, NPROCS )
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 *
53  END
indxg2l
integer function indxg2l(INDXGLOB, NB, IPROC, ISRCPROC, NPROCS)
Definition: indxg2l.f:2