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