14 #include "../SRC/pblas.h"
15 #include "../SRC/PBpblas.h"
16 #include "../SRC/PBtools.h"
17 #include "../SRC/PBblacs.h"
18 #include "../SRC/PBblas.h"
21 #include "../PBpblas.h"
22 #include "../PBtools.h"
23 #include "../PBblacs.h"
24 #include "../PBblas.h"
47 #if (_F2C_CALL_ == _F2C_ADD_ )
48 #define PB_NoAbort pb_noabort_
50 #if (_F2C_CALL_ == _F2C_UPCASE )
51 #define PB_NoAbort PB_NOABORT
53 #if (_F2C_CALL_ == _F2C_NOCHANGE )
54 #define PB_NoAbort pb_noabort
56 #if (_F2C_CALL_ == _F2C_F77ISF2C )
57 #define PB_NoAbort pb_noabort__
61 void PB_Cwarn(
int ICTXT,
int LINE,
char * ROUT,
char * FORM, ... )
106 int iam, mycol, myrow, npcol, nprow;
120 va_start( argptr, FORM );
129 ICTXT = va_arg( argptr,
int );
130 LINE = va_arg( argptr,
int );
131 ROUT = va_arg( argptr,
char * );
132 FORM = va_arg( argptr,
char * );
142 vsprintf( cline, FORM, argptr );
147 if( nprow != -1 ) iam =
Cblacs_pnum( ICTXT, myrow, mycol );
153 (void) fprintf( stderr,
"%s'%s'\n%s{%d,%d}, %s%d, %s%d%s'%s'.\n\n",
154 "PBLAS ERROR ", cline,
"from ", myrow, mycol,
"pnum=",
155 iam,
"Contxt=", ICTXT,
", in routine ", ROUT );
157 (
void) fprintf( stderr,
"%s'%s'\n%s{%d,%d}, %s%d, %s%d%s%d%s'%s'.\n\n",
158 "PBLAS ERROR ", cline,
"from ", myrow, mycol,
"pnum=",
159 iam,
"Contxt=", ICTXT,
", on line ", LINE,
160 " of routine ", ROUT );