SG1ERR or TQG1ERR

This is a logical function.

Fortran

ERROR=SG1ERR(IERR) or ERROR=TQG1ERR(IERR)

C-interface

error=tq_sg1err(TC_INT* ierr);

Full name:

Get Error Code and Give Message.

Purpose:

This is a logical function which could be called after calling a TQ subroutine that can detect an error when the error message should be displayed. If there is an error the function value is .TRUE and the appropriate error code is in IERR. This subroutine also prints the error message on the error unit.

Comments:

Use when the error is almost fatal. Note that it is possible that the error message is already printed by ST1ERR.  Use SG2ERR in most cases. If no error the function value is .FALSE and IERR is zero. If the C-interface is used the value returned is of type: TC_BOOL.

Arguments

Name

Type

Value set on call or returned

IERR

Integer

Set to the error code