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
4/*
5 * Returns the integer ID of ctxt
6 */
7{
8 Int i;
9 extern Int BI_MaxNCtxt;
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}
Int BI_ContxtNum(BLACSCONTEXT *ctxt)
Definition BI_ContxtNum.c:3
BLACSCONTEXT ** BI_MyContxts
Int BI_MaxNCtxt
#define Int
Definition Bconfig.h:22
void BI_BlacsErr(Int ConTxt, Int line, char *file, char *form,...)
Definition BI_BlacsErr.c:3