OpenRadioss
2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
BI_ContxtNum.c File Reference
#include "
Bdef.h
"
Go to the source code of this file.
Functions
Int
BI_ContxtNum
(
BLACSCONTEXT
*ctxt)
Function Documentation
◆
BI_ContxtNum()
Int
BI_ContxtNum
(
BLACSCONTEXT
*
ctxt
)
Definition at line
3
of file
BI_ContxtNum.c
.
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_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
BLACSCONTEXT
struct bLaCsCoNtExT BLACSCONTEXT
Definition
Bdef.h:22
engine
extlib
scalapack-2.2.0
BLACS
SRC
BI_ContxtNum.c
Generated by
1.15.0