From 36f98e9b22f3b8d0b3dfb3279c5c5e6c5c364efb Mon Sep 17 00:00:00 2001 From: Eden Rochman Date: Thu, 4 Jun 2026 16:03:06 +0200 Subject: [PATCH] Add n_collision field to Python SourceSite binding The ctypes _SourceSite struct must match the C++ SourceSite layout. The missing field caused test_source_bank to abort. --- openmc/lib/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmc/lib/core.py b/openmc/lib/core.py index 0ee8c3ff06..f4104bfbbf 100644 --- a/openmc/lib/core.py +++ b/openmc/lib/core.py @@ -34,7 +34,8 @@ class _SourceSite(Structure): ('progeny_id', c_int64), ('wgt_born', c_double), ('wgt_ww_born', c_double), - ('n_split', c_int64)] + ('n_split', c_int64), + ('n_collision', c_int)] # Define input type for numpy arrays that will be passed into C++ functions # Must be an int or double array, with single dimension that is contiguous