ScaLAPACK 2.1  2.1
ScaLAPACK: Scalable Linear Algebra PACKage
BI_ContxtNum.c
Go to the documentation of this file.
1 #include "Bdef.h"
2 
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
bLaCsCoNtExT
Definition: Bdef.h:23
BI_MaxNCtxt
int BI_MaxNCtxt
Definition: BI_GlobalVars.c:5
Bdef.h
BI_MyContxts
BLACSCONTEXT ** BI_MyContxts
Definition: BI_GlobalVars.c:11
BI_BlacsErr
void BI_BlacsErr(int ConTxt, int line, char *file, char *form,...)
Definition: BI_BlacsErr.c:3