Make sure Particle::Bank::particle member gets written in HDF5

This commit is contained in:
Paul Romano 2019-03-12 11:58:58 -05:00
parent dd9d8f412b
commit 9cfd7dee35
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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;