next up [*] [*]
Next: 3. Input / Output Up: I. Utility Modules Previous: 1.3 Format of the

2. Errors Module Notes

The errors module provides subroutines which aid in the handling of errors raised in the running of PHYSICA. The aim of the errors module is to provide a simple mechanism by which


1.
the occurrence of an error can be reported.

2.
the name of the subroutine in which the error was raised can be displayed with a simple message explaining the error.

3.
a trace back display of the routines calling the routine in which the error occurred can be reported.

4.
PHYSICA terminates without crashing

The variable Errinf holds the current error status. When an error has not occurred the value assigned to Errinf is that of the variable NO_ERROR. On the raising of an error the value of Errinf will be changed to an error value which should identify the error which has occurred. Each of the PHYSICA modules, which currently raise errors, have been assigned a range of error codes. The numbers for each module are as follows:

(Assigned Error Codes)
Module Name Start End
generic -1000 -1999
iounit -2000 -2049
memmgr -2050 -2099
parser -2100 -2149
geom -2150 -2199
geneqn -2200 -2249
mprop -2250 -2299
maths -2300 -2349
dbase -2350 -2399
evp -2400 -2449
parallel -2450 -2500 (*)
track -2600 -2649
monitor -2650 -2699
flow -2700 -2749
physica -2750 -2799
scalar -2800 -2849
srad -2850 -2899
heat -2900 -2949
solidf -2950 -2999
scrs -3000 -3049
turb -3050 -3099
freesurf -3100 -3149
user -5000 -5099
ppfiles    
> femgv -9000 -9049
> patran -9050 -9099
> avs -9100 -9149
> fieldvw -9150 -9199
> ensight -9200 -9249
> tecplot -9250 -9299

Modules with no codes are:

errors
lsolver
sysdep
toolset

Note, all error codes will have negative values apart from the users defined ones, where the value can only be positive. This removes the possibility of conflicting error codes.


next up [*] [*]
Next: 3. Input / Output Up: I. Utility Modules Previous: 1.3 Format of the

2002-12-09