SG2ERR or TQG2ERR

This is a logical function.

Fortran

ERROR=SG2ERR(IERR) or ERROR=TQG2ERR(IERR)

C-interface

error=tq_sg2err(TC_INT* ierr);

Full name:

Get Error Code.

Purpose:

This is a logical function which should be called after calling any TQ subroutine that can detect an error. If there is an error the function value is .TRUE and the appropriate error code is in IERR. This subroutine does not print the error message.

Comments:

Use for the normal error checking. Note that it is possible that the error message has already been printed by ST1ERR. The program may be able to handle the error to pass it on upwards.  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