ScaLAPACK 2.1  2.1
ScaLAPACK: Scalable Linear Algebra PACKage
blacs_abort_.c
Go to the documentation of this file.
1 #include "Bdef.h"
2 
3 #if (INTFACE == C_CALL)
4 void Cblacs_abort(int ConTxt, int ErrNo)
5 #else
6 F_VOID_FUNC blacs_abort_(int *ConTxt, int *ErrNo)
7 #endif
8 {
9  void BI_BlacsAbort(int ErrNo);
10  int nprow, npcol, myrow, mycol;
11  extern int BI_Iam;
12 
13  Cblacs_gridinfo(Mpval(ConTxt), &nprow, &npcol, &myrow, &mycol);
14  fprintf(stderr,
15 "{%d,%d}, pnum=%d, Contxt=%d, killed other procs, exiting with error #%d.\n\n",
16  myrow, mycol, BI_Iam, Mpval(ConTxt), Mpval(ErrNo));
17 
18  BI_BlacsAbort(Mpval(ErrNo));
19 }
BI_Iam
int BI_Iam
Definition: BI_GlobalVars.c:7
Cblacs_abort
void Cblacs_abort()
BI_BlacsAbort
void BI_BlacsAbort(int ErrNo)
Definition: BI_BlacsAbort.c:3
Mpval
#define Mpval(para)
Definition: Bdef.h:261
F_VOID_FUNC
#define F_VOID_FUNC
Definition: Bdef.h:232
Bdef.h
blacs_abort_
F_VOID_FUNC blacs_abort_(int *ConTxt, int *ErrNo)
Definition: blacs_abort_.c:6
Cblacs_gridinfo
void Cblacs_gridinfo()