APTG / libdedx

libdEdx is a physics library for stopping power calculations. Stopping power is the energy loss of a particle per unit length (dE/dx). libdedx is supposed to be both fast and easy to use, and features multiple standard dE/dx lists (ICRU, MSTAR...)
https://aptg.github.io/libdedx/
GNU General Public License v3.0
5 stars 2 forks source link

fixes error in number of nucleon calculation #55

Closed grzanka closed 2 years ago

grzanka commented 2 years ago

Related to #53

Fixes bug introduced in https://github.com/APTG/libdedx/pull/47/files#diff-db8662a3000b58ec9c1af55644e2abd7cc57028222892347f487fd11fc024199R166 where both atomic number Z (here config->ion) and nucleon number A (config->ion_a) were set to the same number (atomic number Z) :

   config->ion = ion;
    config->program = program;
    config->ion_a = ion;

The problem is fixed by introducing a new table with nucleon numbers for most abundant isotopes