11 #ifndef _BLOCKWRITE_H_ 12 #define _BLOCKWRITE_H_ 15 #ifdef CH_USE_HDF5 // if you don't have CH_USE_HDF5, then this file is useless 40 #include "NamespaceHeader.H" 44 template <
class T>
int 57 template <
class T>
int 65 const int& a_refRatio,
70 template <
class T>
int 73 const std::string& a_name,
82 const std::string& a_name,
87 template <
class T>
void 89 long long & a_localTotalSize,
96 template <
class T>
void 105 long long& a_allProcSize,
110 const long long& a_localSize);
116 const std::string& a_name,
121 const long long& a_thisprocsize);
133 const std::string& a_name,
136 bool redefineData =
true);
163 const std::string& a_name,
166 bool redefineData =
true);
171 #endif //ifdef CH_USE_HDF5 172 #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:95
A not-necessarily-disjoint collective of boxes.
Definition: BoxLayout.H:146
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:340
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:268
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:159
Structure for passing component ranges in code.
Definition: Interval.H:23
Definition: BoxLayoutData.H:136
Data on a BoxLayout.
Definition: BoxLayoutData.H:91
double Real
Definition: REAL.H:33
A BoxLayout that has a concept of disjointedness.
Definition: DisjointBoxLayout.H:31
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:31
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
Handle to a particular group in an HDF file.
Definition: CH_HDF5.H:267
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:380
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:470