mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Make sure Particle::Bank::particle member gets written in HDF5
This commit is contained in:
parent
dd9d8f412b
commit
9cfd7dee35
2 changed files with 3 additions and 1 deletions
|
|
@ -17,7 +17,8 @@ class _Bank(Structure):
|
|||
('u', c_double*3),
|
||||
('E', c_double),
|
||||
('wgt', c_double),
|
||||
('delayed_group', c_int)]
|
||||
('delayed_group', c_int),
|
||||
('particle', c_int)]
|
||||
|
||||
|
||||
# Define input type for numpy arrays that will be passed into C++ functions
|
||||
|
|
|
|||
|
|
@ -480,6 +480,7 @@ hid_t h5banktype() {
|
|||
H5Tinsert(banktype, "E", HOFFSET(Particle::Bank, E), H5T_NATIVE_DOUBLE);
|
||||
H5Tinsert(banktype, "wgt", HOFFSET(Particle::Bank, wgt), H5T_NATIVE_DOUBLE);
|
||||
H5Tinsert(banktype, "delayed_group", HOFFSET(Particle::Bank, delayed_group), H5T_NATIVE_INT);
|
||||
H5Tinsert(banktype, "particle", HOFFSET(Particle::Bank, particle), H5T_NATIVE_INT);
|
||||
|
||||
H5Tclose(postype);
|
||||
return banktype;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue