SCALAPACK
2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
BI_BlacsErr.c
Go to the documentation of this file.
1
#include "
Bdef.h
"
2
3
void
BI_BlacsErr
(
Int
ConTxt,
Int
line,
char
*file,
char
*form, ...)
4
{
5
#ifdef __STDC__
6
void
BI_BlacsAbort
(
Int
ErrNo);
7
#else
8
void
BI_BlacsAbort
();
9
#endif
10
extern
Int
BI_Iam
;
11
Int
myrow, mycol;
12
va_list argptr;
13
char
cline[100];
14
BLACSCONTEXT
*ctxt;
15
16
va_start(argptr, form);
17
vsprintf(cline, form, argptr);
18
va_end(argptr);
19
20
if
(ConTxt > -1)
21
{
22
MGetConTxt
(ConTxt, ctxt);
23
myrow = ctxt->
cscp
.
Iam
;
24
mycol = ctxt->
rscp
.
Iam
;
25
}
26
else
myrow = mycol = -1;
27
28
fprintf(stderr,
29
"BLACS ERROR '%s'\nfrom {%d,%d}, pnum=%d, Contxt=%d, on line %d of file '%s'.\n\n"
,
30
cline, myrow, mycol,
BI_Iam
, ConTxt, line, file);
31
32
BI_BlacsAbort
(1);
33
}
BI_BlacsAbort
void BI_BlacsAbort(Int ErrNo)
Definition
BI_BlacsAbort.c:3
BI_BlacsErr
void BI_BlacsErr(Int ConTxt, Int line, char *file, char *form,...)
Definition
BI_BlacsErr.c:3
BI_Iam
Int BI_Iam
Definition
BI_GlobalVars.c:7
Int
#define Int
Definition
Bconfig.h:22
MGetConTxt
#define MGetConTxt(Context, ctxtptr)
Definition
Bdef.h:200
Bdef.h
bLaCsCoNtExT::rscp
BLACSSCOPE rscp
Definition
Bdef.h:25
bLaCsCoNtExT::cscp
BLACSSCOPE cscp
Definition
Bdef.h:25
bLaCsCoNtExT
Definition
Bdef.h:24
bLaCsScOpE::Iam
Int Iam
Definition
Bdef.h:17
BLACS
SRC
BI_BlacsErr.c
Generated on Sun Jan 12 2025 15:58:37 for SCALAPACK by
1.9.8