Skip to content

Commit

Permalink
Update atomic.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Sep 8, 2024
1 parent 6821e72 commit 3b8a280
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ inline auto get_includedlevels() -> int { return includedlevels; }
}

[[nodiscard]] inline auto get_uptranslist(const int element, const int ion, const int level) -> LevelTransition * {
return globals::alltrans + globals::elements[element].ions[ion].levels[level].alltrans_startup;
const auto &levelref = globals::elements[element].ions[ion].levels[level];
return globals::alltrans + levelref.alltrans_startdown + levelref.ndowntrans;
}

[[nodiscard]] inline auto get_uptransspan(const int element, const int ion, const int level) {
Expand Down

0 comments on commit 3b8a280

Please sign in to comment.