diff --git a/macroatom.cc b/macroatom.cc index c40dc6b8d..dc2ab8ff3 100644 --- a/macroatom.cc +++ b/macroatom.cc @@ -112,7 +112,7 @@ void calculate_macroatom_transitionrates(const int modelgridindex, const int ele double sum_internal_up_same = 0.; const int nuptrans = get_nuptrans(element, ion, level); for (int i = 0; i < nuptrans; i++) { - const auto &uptrans = globals::elements[element].ions[ion].levels[level].uptrans[i]; + const auto &uptrans = levelref.uptrans[i]; const double epsilon_trans = epsilon(element, ion, uptrans.targetlevelindex) - epsilon_current; const double R =