5. Python utility#

The messages in the python files are printed using the UTMESS method.

Name

Function

UTMESS

Print a message, character values, integer and real values at the same time

def UTMESS (type, idmess, valk, vali, valr)

type

IN

Message type (E, F, A, I)

idmess

IN

message identifier

valk

IN

Character parameter values

vali

IN

Integer parameter values

vali

IN

Real type parameter values

Unlike Fortran, there is only one UTMESS function because the valk, vali, and valr arguments are optional (see Python Tutorial, keyword arguments). The function of U2 MESI is carried out in this way:

UTMESS ('A', 'MESSAGE_1', valid =( 1, 2, 3))