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 a68ac51 commit 2d6fe8e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions input.cc
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,6 @@ void add_transitions_to_unsorted_linelist(const int element, const int ion, cons
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,
// but the assertion tripped on C IV in the classic dataset.
assert_always(downtransition.targetlevelindex == lowerlevel);

downtransition.einstein_A += transition.A;
Expand Down

0 comments on commit 2d6fe8e

Please sign in to comment.