OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
BI_BlacsWarn.c File Reference
#include "Bdef.h"

Go to the source code of this file.

Functions

void BI_BlacsWarn (Int ConTxt, Int line, char *file, char *form,...)

Function Documentation

◆ BI_BlacsWarn()

void BI_BlacsWarn ( Int ConTxt,
Int line,
char * file,
char * form,
... )

Definition at line 3 of file BI_BlacsWarn.c.

4{
5 extern Int BI_Iam;
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}
Int BI_Iam
BLACSCONTEXT ** BI_MyContxts
#define Int
Definition Bconfig.h:22
struct bLaCsCoNtExT BLACSCONTEXT
Definition Bdef.h:22