* $Id: xnd_err.html,v 1.1.1.1 1999/07/31 10:42:00 berar Exp $ *>
Exit and Error codes of xnd program.
Exit and Error codes of on xnd program.
Contents
When it exit, xnd return an integer code which can be use
by scripts to decide which will be the following procedures. This
code take the following values.
Displacements are lower than EpsStop
|
---|
0 | Best minimization on last cycle
|
---|
1 | Best minimization at intermediate cycle | the last is better than starting point
|
---|
2 | the last is worst than starting point
|
---|
Stop on MaxCycle cycles
|
---|
3 | Best minimization on last cycle
|
---|
4 | Best minimization at intermediate cycle | the last is better than starting point
|
---|
5 | the last is worst than starting point
|
---|
Stop due to errors
|
---|
10 | Reading or checking initail consistency
|
---|
11 | Inverting least-square matrix
|
---|
12 | Inverting spline matrix (back-ground)
|
---|
13 | Mathematical error
|
---|
14 | Memory allocation error
|
---|
15 | Error with internal temporary files
|
---|
16 | Error due to internal coherency (should never appear)
|
---|
Parameter without meaningless does not always stop the program,
they will be fixed. But if their number quickly increase the program
will stop.
Examples of using these codes are given in the cshell unix script
"cycle.xnd
" or in the msdos "xnd_bat.bat
"
Before exiting xnd tries to give information about the
errors. It prints on the listing file the content of a stack
allowing users to find in which procedure the error occurs.
It also print some message on the error.
Les principaux sont contenus dans le fichier xnd_msg.h :
E_FOPEN Ouverture fichier '%s' : '%s' impossible"
E_CHK Coherence interne : %s"
/* xnd_r... */
E_FNAME Nom de fichier '%s'0
E_READ Lecture '%s' a %.4f"
E_ZEROP Pas de points sur fichier '%s'"
E_NEGAT Fichier DATA non croissant : %.3f %.3f"
E_RANGE Fichier DATA en %d dtheta impossible : %.3f"
/* xnd_use... */
E_RDATF Lecture Fichier Data"
E_WDATF Ecriture Fichier Data"
E_DYDPS Positionement fichier interne DYDP"
E_DYDPR Lecture fichier interne DYDP"
E_DYDPW Ecriture fichier interne DYDP
=> En general un probleme de place sur le disque par defaut.
E_ALLOC Allocation Memoire %u * %u : %s0
JFB Feb 21th, 1997