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 |

Note the following conventions to distinguish between the programming languages.
- Routines starting with TQXXX, for example, TQGDAT, are in the Fortran interface
- Routines starting with tq_xxxx, for example tq_gdat, are in the C-interface.
- In Fortran, all routines are subroutines and do not return any values except where explicitly declared as functions.
- All the C procedures are declared as void and do not return any values except where explicitly otherwise declared.
An example of how to read the subroutine definitions.