Skip to content

Commit

Permalink
Update input.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Sep 9, 2024
1 parent 61c0454 commit 6dd68b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion input.cc
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,8 @@ void add_transitions_to_unsorted_linelist(const int element, const int ion, cons
const float f_ul = g_ratio * ME * pow(CLIGHT, 3) / (8 * pow(QE * nu_trans * PI, 2)) * transition.A;

const int nupperdowntrans = get_ndowntrans(element, ion, level);
auto &downtransition = get_downtranslist(element, ion, level)[nupperdowntrans];
auto &downtransition = temp_alltranslist[globals::elements[element].ions[ion].levels[level].alltrans_startdown +
nupperdowntrans - 1];

// this is what classic did, but it is not quite correct. The downtrans list should be searched to find the
// correct index, not just using the last one. It probably works for the case where the transitions are sorted,
Expand Down

0 comments on commit 6dd68b5

Please sign in to comment.