SCALAPACK
2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
BI_ContxtNum.c
Go to the documentation of this file.
1
#include "
Bdef.h
"
2
3
Int
BI_ContxtNum
(
BLACSCONTEXT
*ctxt)
4
/*
5
* Returns the integer ID of ctxt
6
*/
7
{
8
Int
i;
9
extern
Int
BI_MaxNCtxt
;
10
extern
BLACSCONTEXT
**
BI_MyContxts
;
11
12
if
(ctxt == NULL)
return
(-1);
13
for
(i=0; i <
BI_MaxNCtxt
; i++)
if
(
BI_MyContxts
[i] == ctxt)
break
;
14
if
(i ==
BI_MaxNCtxt
)
15
BI_BlacsErr
(-1, -1,
"BLACS INTERNAL ROUTINE"
,
"illegal context"
);
16
return
(i);
17
}
BI_ContxtNum
Int BI_ContxtNum(BLACSCONTEXT *ctxt)
Definition
BI_ContxtNum.c:3
BI_MyContxts
BLACSCONTEXT ** BI_MyContxts
Definition
BI_GlobalVars.c:11
BI_MaxNCtxt
Int BI_MaxNCtxt
Definition
BI_GlobalVars.c:5
Int
#define Int
Definition
Bconfig.h:22
BI_BlacsErr
void BI_BlacsErr(Int ConTxt, Int line, char *file, char *form,...)
Definition
BI_BlacsErr.c:3
Bdef.h
bLaCsCoNtExT
Definition
Bdef.h:24
BLACS
SRC
BI_ContxtNum.c
Generated on Sun Jan 12 2025 15:58:37 for SCALAPACK by
1.9.8