ScaLAPACK 2.1
2.1
ScaLAPACK: Scalable Linear Algebra PACKage
kbsid_.c
Go to the documentation of this file.
1
#include "
Bdef.h
"
2
3
#if (INTFACE == C_CALL)
4
int
Ckbsid(
int
ConTxt,
char
*scope)
5
#else
6
F_INT_FUNC
kbsid_
(
int
*ConTxt,
F_CHAR
scope)
7
#endif
8
{
9
char
tmpscope;
10
int
msgid;
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->
rscp
;
22
break
;
23
case
'a'
:
24
ctxt->
scp
= &ctxt->
ascp
;
25
break
;
26
}
27
msgid =
Mscopeid
(ctxt);
28
return
(msgid);
29
}
bLaCsCoNtExT::rscp
BLACSSCOPE rscp
Definition:
Bdef.h:25
F_INT_FUNC
#define F_INT_FUNC
Definition:
Bdef.h:233
F_CHAR
char * F_CHAR
Definition:
pblas.h:109
bLaCsCoNtExT::ascp
BLACSSCOPE ascp
Definition:
Bdef.h:25
MGetConTxt
#define MGetConTxt(Context, ctxtptr)
Definition:
Bdef.h:200
kbsid_
F_INT_FUNC kbsid_(int *ConTxt, F_CHAR scope)
Definition:
kbsid_.c:6
Mscopeid
#define Mscopeid(ctxt)
Definition:
Bdef.h:179
F2C_CharTrans
#define F2C_CharTrans(c)
Definition:
Bdef.h:246
Mpval
#define Mpval(para)
Definition:
Bdef.h:261
Mlowcase
#define Mlowcase(C)
Definition:
Bdef.h:145
bLaCsCoNtExT
Definition:
Bdef.h:23
bLaCsCoNtExT::cscp
BLACSSCOPE cscp
Definition:
Bdef.h:25
bLaCsCoNtExT::scp
BLACSSCOPE * scp
Definition:
Bdef.h:26
Bdef.h
BLACS
SRC
kbsid_.c
Generated by
1.8.16