Enhancing to/from hdf5 methods so that DAGMC universes can be reproduced and exported to XML from a summary file.

This commit is contained in:
Patrick Shriwise 2021-06-29 21:04:23 -05:00
parent e2826fa57b
commit ef70e12142
7 changed files with 70 additions and 15 deletions

View file

@ -68,7 +68,7 @@ public:
//! \brief Write universe information to an HDF5 group.
//! \param group_id An HDF5 group id.
void to_hdf5(hid_t group_id) const;
virtual void to_hdf5(hid_t group_id) const;
virtual bool find_cell(Particle &p) const;

View file

@ -122,6 +122,8 @@ public:
bool find_cell(Particle &p) const override;
void to_hdf5(hid_t universes_group) const override;
// Data Members
std::shared_ptr<moab::DagMC> dagmc_instance_; //!< DAGMC Instance for this universe
int32_t cell_idx_offset_; //!< An offset to the start of the cells in this universe in OpenMC's cell vector