From 4d2f934e6849aaeee3411362676d40fa9f75cd4e Mon Sep 17 00:00:00 2001 From: Luke Shingles Date: Fri, 30 Aug 2024 13:56:48 +0100 Subject: [PATCH] Update atomic.h --- atomic.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/atomic.h b/atomic.h index 8b1334594..cd537047c 100644 --- a/atomic.h +++ b/atomic.h @@ -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; }