SUBROUTINE M3WARN( CALLER, JDATE, JTIME, ERRTXT ) CHARACTER*(*), INTENT(IN ) :: CALLER ! name of caller INTEGER , INTENT(IN ) :: JDATE ! date YYYYDDD associated with error, or 0 INTEGER , INTENT(IN ) :: JTIME ! time HHMMSS associated with error, or 0 CHARACTER*(*), INTENT(IN ) :: ERRTXT ! caller-supplied error message
void m3warnc( const char * caller , int jdate , int jtime , const char * errtxt ) ;
Models-3 standard: construct error messages and caller names so that it is possible to determine uniquely from the text of the error message the line at which the error occurred, and (to the extent possible) the nature of the error.
See also M3ERR() and m3errc() , M3EXIT() and m3exitc() , M3MESG() and m3mesgc() .
#include "iodecl3.h"
if called from C.
JDATE:JTIME represented YYYYDDD:HHMMSS according to Models-3 date and time conventions , or are 0.
USE M3UTILIO
(See sample programs LATLON or PRESZ for additional usage examples.)
... CALL M3WARN( 'myname', 0, 0, 'Trouble with FOO' ) C generates warning message; no date supplied to log ...
... #include "iodecl3.h" ... m3warnc( "ME", jdate, jtime, "Bad vble 'foo'" ) ; /* error message followed by SHUT3(); exit( 2 ) */ ...
To: Models-3/EDSS I/O API: The Help Pages