USRMES

USRMES allows you to output messages for information or for documenting errors that occur in user-written subroutines.

Use

Called By

Any user-written subroutine

Prerequisite

None

Calling Sequence

CALL USRMES (msgflg, mesage, id, msgtyp)

Input Arguments

 
id
An integer variable that specifies the ID of the statement that is currently invoking the user-written subroutine.
mesage
A character string or variable of as many as 1024 characters that you want USRMES to document. This character string should be a descriptive message and should include the name of the subroutine issuing the message.
msgflg
A logical (true or false) variable. When msgflg is true, USRMES documents a message.
msgtyp
A character variable that indicates what type of message is given. msgtyp can have one of four values:
INFO - For information messages
WARN - For warnings
ERROR - For error messages
FAULT - For fatal error messages
INFO_NOPAD - Prints out the information message but without the USRMES:USER1 tag before the message
LOGINF - Writes out the message in the message file but doesn’t print it out on the screen
If msgtyp has any other value, Adams Solver issues an information message.

Extended Definition

USRMES allows you to output messages from user-written subroutines. The messages always go to the Message File, and during interactive execution, Adams Solver displays them on the screen.