13 #ifndef _PARTICLEIO_H_ 14 #define _PARTICLEIO_H_ 27 #include "NamespaceHeader.H" 33 const hid_t& dataspace,
35 const hid_t& H5T_type,
36 const unsigned long dataLength,
37 const void*
const data);
41 const hid_t& dataspace,
43 const hid_t& H5T_type,
44 const unsigned long dataLength,
46 const size_t stride=1,
47 const size_t block=1);
52 const vector<unsigned long long>& a_partPerBox,
53 const std::string& a_dataType);
58 vector<unsigned long long>& a_particlesPerBox,
59 const std::string& a_dataType,
60 const std::string& a_path);
65 const vector<T>& a_vect,
66 const hid_t& H5T_type,
67 const std::string& a_dataname);
73 const hid_t& H5T_type,
74 const std::string& a_dataname);
79 template<
class P>
void 82 const std::string& a_dataType);
90 const std::string& a_dataType);
93 template<
class P>
void 97 const std::string& a_dataType);
101 #include "NamespaceFooter.H" void write_vect_to_header(HDF5Handle &a_handle, const vector< T > &a_vect, const hid_t &H5T_type, const std::string &a_dataname)
A helper function that writes a vector of 'T's to the HDF5 file under a_dataname. ...
Definition: ParticleIOI.H:26
void writeDataChunk(size_t &offset, const hid_t &dataspace, const hid_t &dataset, const hid_t &H5T_type, const unsigned long dataLength, const void *const data)
Write chunk of data and upgrade offset. Not meant to be a user-facing function.
void read_vect_from_header(HDF5Handle &a_handle, vector< T > &a_vect, const hid_t &H5T_type, const std::string &a_dataname)
A helper function that reads a vector of 'T's to the HDF5 file under a_dataname.
Definition: ParticleIOI.H:62
void readDataChunk(size_t &offset, const hid_t &dataspace, const hid_t &dataset, const hid_t &H5T_type, const unsigned long dataLength, void *const data, const size_t stride=1, const size_t block=1)
Read chunk of data and upgrade offset. Not meant to be a user-facing function.
A not-necessarily-disjoint collective of boxes.
Definition: BoxLayout.H:145
void readParticlesFromHDF(HDF5Handle &a_handle, ParticleData< P > &a_particles, const std::string &a_dataType)
Definition: ParticleIOI.H:244
void read_hdf_part_header(HDF5Handle &a_handle, Vector< Box > &a_grids, vector< unsigned long long > &a_particlesPerBox, const std::string &a_dataType, const std::string &a_path)
Read the particle header from the HDF5 file. Not meant to be a user-facing function.
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
void write_hdf_part_header(HDF5Handle &a_handle, const BoxLayout &a_grids, const vector< unsigned long long > &a_partPerBox, const std::string &a_dataType)
Write the particle header to the HDF5 file. Not meant to be a user-facing function.
void writeParticlesToHDF(HDF5Handle &a_handle, const ParticleData< P > &a_particles, const std::string &a_dataType)
Definition: ParticleIOI.H:93
Handle to a particular group in an HDF file.
Definition: CH_HDF5.H:294
Definition: ParticleData.H:67