
AASI v.4

Summary of runtime warning and error codes. Some errors are such that an end-user
has no means to correct the situation. However, codes marked with an asterisk (*)
are related to errors where user input has an influence.


WARNING CODES

100: Exit point from the source particle is below (above) the emission point, 
	when emission is in the positive (negative) z-direction. 
	Occurs usually with very small partcle sizes, where numerical rounding 
	errors affect the accuracy (function path).
101*: Points x0 and x1 are (almost) degenerate, interpolation is not safe, since it 
	requires division by (x0-x1). Most probably related to E-column in the
	photoelectric attenuation data (function linearinterp).
102*: Spehrical shell geometry is used with an ellipsoidal source particle (shell discarded).
103*: Attenuating material layer has a negative thickness (thickness set to zero).
104*: Particle or source Z negative (composite material), energy straggling is 
	switched off.
105*: Exponential depth distribution of the source particles, convex source option
	discarded (use cylindrical source).
106*: Minus sign in a wrong place in a string that is being converted to a real number.
	Check correctness of the library data.
107*: Plus sign in a wrong place in a string that is being converted to a real number.
	Check correctness of the library data.

ERROR CODES

100: Energy of the alpha particle is below 1 keV cutoff (function atten).
101: Photon energy is out of range compared to data in photoelectric attenuation file
	(function photonDeposition).
102: Parameter array dimensions are not correct in subroutine set_energy_loss_param.
103*: Material requested does not exist in the stopping power database.
104*: Fraction to be distributed inside the source according to exponential function
	is out of range. Fraction must be between 0 and 1. 
105*: Source density multiplier is negative. Check input.
106*: Energy bin is negative. Check input.
107*: Source particle density multiplier is negative. Check input.
108*: Source Z or A is out of range. Check input.
109*: Either side or central thickness for a convex source is negative. Check input.
110*: Half-depth of exponential source particle distribution is negative. Check input.
111*: Source-detector distance is negative. Check input.
112*: Decay energy for 'dummy' nuclide must be positive (even if library data is being used).
	Check input.
113*: Negative source particle radius. Check input.
114*: Source particle Z or A is out of range. Check input.
115*: Attenuating material layer has a negative density. Check input.
116*: Summed thickness of attenuating layers is greater than source-detector distance.
	Check input.
117*: Source radius is negative. Check input.
118*: Standard deviation of the lognormal distribution is less than 1. Check input.
119*: Mean of the lognormal distribution is negative or zero. Check input.
120*: Source particle diameter cutoff is negative or zero. Check input.
121*: Too short integration step for energy loss, step must be greater than 0.01 microm.
	Check input.
122: Allocation of array coords failed. Try to decrease problem size (number of decays).
123: Number of source particles left in the source does not match the value obtained by
	subtracting the number of particles that have penetrated the source from total 
	decays (see routine position).
124: Sampled source point in the convex source is outside the source. Probably due to numerical
	rounding error.
125*: Not enough valid source particles found from lognormal size distribution (too large
	particles). Either use equal-sized particles or decrease GSD and/or increase particle 
	diamter cutoff.
126: Error in rejection method in subroutine exp_distrib. Sampled point lies above the rejection
	function.
127*: Error reading the xml-library (error message from the xml-fortran package). Check the 
	library file.
128*: Number of lines in the xml-library does not match the parameter numberOfLines. Check the library.
129*: Number of lines in decay data structure does not match the user-given parameter numberOfLines.
	Check the library file.
130*: Broken decay chain in the library data (ground state can not be reached). Check the library file. 
131*: Negative transition energy found. Check the library file.
132*: Negative transition yield found. Check the library file.
133*: Undefined transition type found. Type must be a, g or e. Check the library file.
134*: Initial state equal to final state or final state index negative. Check the library file. 
135*: Decay yield for indicated initial state is not correctly normalised to unity. Check the library file.
136*: No X-ray line for the conversion electron transition. Check the library file.
137*: File photoelAttData.dat can not be opened.
138*: Error in reading the file photoelAttData.dat.
139: Unused.
