SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
kbrid_.c
Go to the documentation of this file.
1#include "Bdef.h"
2
3#if (INTFACE == C_CALL)
4Int Ckbrid(Int ConTxt, char *scope, Int rsrc, Int csrc)
5#else
6F_INT_FUNC kbrid_(Int *ConTxt, F_CHAR scope, Int *rsrc, Int *csrc)
7#endif
8{
9 Int msgid;
10 char tmpscope;
11 BLACSCONTEXT *ctxt;
12
13 MGetConTxt(Mpval(ConTxt), ctxt);
14 tmpscope = Mlowcase(F2C_CharTrans(scope));
15 switch(tmpscope)
16 {
17 case 'c' :
18 ctxt->scp = &ctxt->cscp;
19 break;
20 case 'r' :
21 ctxt->scp = &ctxt->cscp;
22 break;
23 case 'a' :
24 ctxt->scp = &ctxt->cscp;
25 break;
26 }
27 msgid = Mscopeid(ctxt);
28 return (msgid);
29}
#define Int
Definition Bconfig.h:22
#define F2C_CharTrans(c)
Definition Bdef.h:246
#define MGetConTxt(Context, ctxtptr)
Definition Bdef.h:200
#define Mscopeid(ctxt)
Definition Bdef.h:179
#define Mpval(para)
Definition Bdef.h:261
#define F_INT_FUNC
Definition Bdef.h:233
#define Mlowcase(C)
Definition Bdef.h:145
char * F_CHAR
Definition pblas.h:113
F_INT_FUNC kbrid_(Int *ConTxt, F_CHAR scope, Int *rsrc, Int *csrc)
Definition kbrid_.c:6
BLACSSCOPE * scp
Definition Bdef.h:26
BLACSSCOPE cscp
Definition Bdef.h:25