mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
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.
This commit is contained in:
parent
2199229b15
commit
36f98e9b22
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue