ScaLAPACK 2.1  2.1
ScaLAPACK: Scalable Linear Algebra PACKage
BI_BlacsWarn.c
Go to the documentation of this file.
1 #include "Bdef.h"
2 
3 void BI_BlacsWarn(int ConTxt, int line, char *file, char *form, ...)
4 {
5  extern int BI_Iam;
6  extern BLACSCONTEXT **BI_MyContxts;
7  int myrow, mycol;
8  va_list argptr;
9  char cline[100];
10 
11  va_start(argptr, form);
12  vsprintf(cline, form, argptr);
13  va_end(argptr);
14 
15  if (ConTxt > -1)
16  {
17  myrow = BI_MyContxts[ConTxt]->cscp.Iam;
18  mycol = BI_MyContxts[ConTxt]->rscp.Iam;
19  }
20  else myrow = mycol = -1;
21 
22  fprintf(stderr,
23 "BLACS WARNING '%s'\nfrom {%d,%d}, pnum=%d, Contxt=%d, on line %d of file '%s'.\n\n",
24  cline, myrow, mycol, BI_Iam, ConTxt, line, file);
25 }
BI_BlacsWarn
void BI_BlacsWarn(int ConTxt, int line, char *file, char *form,...)
Definition: BI_BlacsWarn.c:3
BI_Iam
int BI_Iam
Definition: BI_GlobalVars.c:7
bLaCsCoNtExT::rscp
BLACSSCOPE rscp
Definition: Bdef.h:25
bLaCsScOpE::Iam
int Iam
Definition: Bdef.h:17
bLaCsCoNtExT
Definition: Bdef.h:23
bLaCsCoNtExT::cscp
BLACSSCOPE cscp
Definition: Bdef.h:25
Bdef.h
BI_MyContxts
BLACSCONTEXT ** BI_MyContxts
Definition: BI_GlobalVars.c:11