Skip to content

Commit

Permalink
Update atomic.h
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Aug 30, 2024
1 parent db80d03 commit 01955c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ inline void update_includedionslevels_maxnions() {
}

// return the number of ions of all elements combined
inline auto get_includedions() -> int { return includedions; }
inline auto get_includedions() -> int {
assert_testmodeonly(get_includedions() > 0);
return includedions;
}

// return the number of ions of all elements combined
inline auto get_includedlevels() -> int { return includedlevels; }
Expand Down
4 changes: 2 additions & 2 deletions input.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1445,9 +1445,9 @@ void setup_phixs_list() {
}

free(globals::elements[element].ions[ion].levels[level].photoion_xs);
globals::elements[element].ions[ion].levels[level].photoion_xs =
allphixsblock + (nbftableschanged * globals::NPHIXSPOINTS);
globals::elements[element].ions[ion].levels[level].photoion_xs = allphixsblock;

allphixsblock += globals::NPHIXSPOINTS;
nbftableschanged++;
}
}
Expand Down

0 comments on commit 01955c3

Please sign in to comment.