ascot4fusion / ascot5

ASCOT5 is a high-performance orbit-following code for fusion plasma physics and engineering
https://ascot4fusion.github.io/ascot5/
GNU Lesser General Public License v3.0
31 stars 9 forks source link

Bug in atomic model #99

Closed miekkasarki closed 8 months ago

miekkasarki commented 8 months ago

During the initialization of the atomic data, the array is incorrectly initialized.

real * temp_arr_pos = temp_array + 5 * N_reac;

should be

real * temp_arr_pos = temp_array + 6 * N_reac;

and ditto in two other places. This bug causes the interpolated data to be slightly misaligned, so it's uncertain how large the error was.

miekkasarki commented 8 months ago

Merged to develop