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 e701c0d commit 4d2f934
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 4d2f934

Please sign in to comment.