SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
blacs_pnum_.c
Go to the documentation of this file.
1#include "Bdef.h"
2
3#if (INTFACE == C_CALL)
4Int Cblacs_pnum(Int ConTxt, Int prow, Int pcol)
5#else
6F_INT_FUNC blacs_pnum_(Int *ConTxt, Int *prow, Int *pcol)
7#endif
8{
9 BLACSCONTEXT *ctxt;
10
11 MGetConTxt(Mpval(ConTxt), ctxt);
12 if ( (Mpval(prow) >= 0) && (Mpval(prow) < ctxt->cscp.Np) &&
13 (Mpval(pcol) >= 0) && (Mpval(pcol) < ctxt->rscp.Np) )
14 return( Mkpnum(ctxt, Mpval(prow), Mpval(pcol)) );
15 else return(-1);
16}
#define Int
Definition Bconfig.h:22
#define MGetConTxt(Context, ctxtptr)
Definition Bdef.h:200
#define Mpval(para)
Definition Bdef.h:261
#define Mkpnum(ctxt, prow, pcol)
Definition Bdef.h:173
#define F_INT_FUNC
Definition Bdef.h:233
Int Cblacs_pnum()
F_INT_FUNC blacs_pnum_(Int *ConTxt, Int *prow, Int *pcol)
Definition blacs_pnum_.c:6
BLACSSCOPE rscp
Definition Bdef.h:25
BLACSSCOPE cscp
Definition Bdef.h:25
Int Np
Definition Bdef.h:17