11 #ifndef _BLOCKWRITE_H_ 12 #define _BLOCKWRITE_H_ 14 #ifdef CH_USE_HDF5 // if you don't have CH_USE_HDF5, then this file is useless 39 #include "NamespaceHeader.H" 42 template <
class T>
int 55 template <
class T>
int 63 const int& a_refRatio,
68 template <
class T>
int 71 const std::string& a_name,
80 const std::string& a_name,
85 template <
class T>
void 87 long long & a_localTotalSize,
94 template <
class T>
void 103 long long& a_allProcSize,
108 const long long& a_localSize);
114 const std::string& a_name,
119 const long long& a_thisprocsize);
131 const std::string& a_name,
134 bool redefineData =
true);
161 const std::string& a_name,
164 bool redefineData =
true);
169 #endif //ifdef CH_USE_HDF5 170 #endif //ifndef __BlockWrite__
int gatherBoxesAndOffsets(long long &a_offsetThisProc, long long &a_allProcSize, Vector< long long > &a_globalOffsets, Vector< Box > &a_globalBoxes, const Vector< long long > &a_localOffsets, const Vector< Box > &a_localBoxes, const long long &a_localSize)
Definition: BlockWriteI.H:94
A not-necessarily-disjoint collective of boxes.
Definition: BoxLayout.H:145
int blockWriteLevel(HDF5Handle &a_handle, const int &a_level, const LevelData< T > &a_data, const Real &a_dx, const Real &a_dt, const Real &a_time, const Box &a_domain, const int &a_refRatio, const IntVect &outputGhost, const Interval &comps)
Definition: BlockWriteI.H:335
int blockWrite(HDF5Handle &a_handle, const BoxLayoutData< T > &a_data, const std::string &a_name, const IntVect &a_outputGhost, const Interval &a_comps)
Definition: BlockWriteI.H:264
void blockWriteToBuffer(void *a_buffer, const BoxLayoutData< T > &a_data, const Interval &a_comps, const IntVect &a_outputGhost)
int blockWriteBufferToFile(HDF5Handle &a_handle, void *a_buffer, const std::string &a_name, Vector< Box > &a_boxes, Vector< long long > &a_offsets, const Vector< hid_t > &a_types, const BoxLayout &a_layout, const long long &a_thisprocsize)
Definition: BlockWriteI.H:158
Structure for passing component ranges in code.
Definition: Interval.H:23
new code
Definition: BoxLayoutData.H:170
Data on a BoxLayout.
Definition: BoxLayoutData.H:97
double Real
Definition: REAL.H:33
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:30
void blockLocalOffsets(Vector< long long > &a_localOffsets, long long &a_localTotalSize, Vector< Box > &a_localBoxes, const BoxLayoutData< T > &a_data, const Interval &a_comps, const IntVect &a_outputGhost)
Definition: BlockWriteI.H:30
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
Handle to a particular group in an HDF file.
Definition: CH_HDF5.H:294
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
int blockReadLevel(HDF5Handle &a_handle, const int &a_level, LevelData< T > &a_data, Real &a_dx, Real &a_dt, Real &a_time, Box &a_domain, int &a_refRatio, const Interval &a_comps, bool setGhost)
Definition: BlockWriteI.H:375
int blockRead(HDF5Handle &a_handle, BoxLayoutData< T > &a_data, const std::string &a_name, const BoxLayout &a_layout, const Interval &a_comps=Interval(), bool redefineData=true)
read BoxLayoutData named a_name from location specified by a_handle.
Definition: BlockWriteI.H:464