aboutsummaryrefslogtreecommitdiff
path: root/src/test.c
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-10-18 10:10:03 -0500
committertlatorre <tlatorre@uchicago.edu>2018-10-18 10:10:03 -0500
commit93f4b97a553998ac8fb59005c3d99b303afb6f60 (patch)
tree84f798c4a37316547c0b411c3ffbe6bb006cee30 /src/test.c
parente8efaa702e296e69d376639ebc0a70a251aaaed2 (diff)
downloadsddm-93f4b97a553998ac8fb59005c3d99b303afb6f60.tar.gz
sddm-93f4b97a553998ac8fb59005c3d99b303afb6f60.tar.bz2
sddm-93f4b97a553998ac8fb59005c3d99b303afb6f60.zip
make sure that the kinetic energy is zero at the last step
Occasionally when fitting electrons the kinetic energy at the last step would be high enough that the electron never crossed the BETA_MIN threshold which would cause the gsl routine to throw an error. This commit updates particle_init() to set the kinetic energy at the last step to zero to make sure that we can bisect the point along the track where the speed drops to BETA_MIN.
Diffstat (limited to 'src/test.c')
0 files changed, 0 insertions, 0 deletions