Skip to content

Commit f81b3db

Browse files
committed
jibaltool cs calculated elemental cross section wrong, because of wrong index in array
1 parent c2c5926 commit f81b3db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/jibaltool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ int print_cs(jibaltool_global *global, int argc, char **argv) {
356356
for(size_t i_elem = 0; i_elem < target_material->n_elements; i_elem++) {
357357
jibal_element *e = &target_material->elements[i_elem];
358358
for(size_t i_isotope = 0; i_isotope < e->n_isotopes; i_isotope++) {
359-
const jibal_isotope *isotope = e->isotopes[i_elem];
359+
const jibal_isotope *isotope = e->isotopes[i_isotope];
360360
double theta_max=asin(isotope->mass/incident->mass);
361361

362362
double c = e->concs[i_isotope];

0 commit comments

Comments
 (0)