[Gate-users] Interpolation spectrum error for two consecutive energies with matching probabilities
richard.brown at inserm.fr
Tue Nov 15 18:12:06 CET 2016
I’m having a problem defining an interpolated spectrum for a e- source.
If two consecutive energies in file used by the setSpectrumFile function have the same probability, particles can be generated with either nan or inf energy.
To reproduce this problem:
Start with the example found in “Gate/Source/examples/example_UserSpectrum”
Remove the discrete and histogram from the source.mac file (to narrow down the source of the error)
In the file “InterpolationSpectrum.txt”, change the table to:
If the table is then:
(or anything else as long as the probabilities don’t match) this will work with no problems.
Any ideas as to what to do?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gate-users