Chombo + EB + MF  3.2
MFAMRIO.H
Go to the documentation of this file.
1 #ifdef CH_LANG_CC
2 /*
3  * _______ __
4  * / ___/ / ___ __ _ / / ___
5  * / /__/ _ \/ _ \/ V \/ _ \/ _ \
6  * \___/_//_/\___/_/_/_/_.__/\___/
7  * Please refer to Copyright.txt, in Chombo's root directory.
8  */
9 #endif
10 
11 // DFMartin, Wed, April 27, 2005
12 
13 #ifndef _MFAMRIO_H_
14 #define _MFAMRIO_H_
15 
16 #include "LevelData.H"
17 #include "REAL.H"
18 #include "Vector.H"
19 #include "MFCellFAB.H"
20 #include "IntVectSet.H"
21 #include <string>
22 #include "NamespaceHeader.H"
23 
24 using std::string;
25 using std::istream;
26 
27 #ifdef CH_USE_HDF5
28 
29 ///
30 /** Writes a plotfile using the same format as writeEBHDF5, but
31  for a single phase in a MFCellFAB. This is useful for debugging.
32  *a_dataPtr is written to a file named fab.hdf5
33 
34 */
35 void
36 writeMFFAB(const MFCellFAB* a_dataPtr, int a_phase);
37 
38 ///
39 /** View *a_dataPtr by writing it to an HDF5 plotfile (to a temporary file)
40  and then running ChomboVis with a python script which brings up a data
41  browser by default. The file has the same format as writeEBHDF5,
42  but for a single phase of a MFCellFAB. This is useful for debugging.
43 */
44 void
45 viewMFFAB(const MFCellFAB* a_dataPtr, int a_phase);
46 
47 
48 ///
49 /** View *a_dataPtr by writing it to an HDF5 plotfile (to a temporary file)
50  and then running browse with a python script which brings up a data
51  browser by default. The file has the same format as writeEBHDF5,
52  but for a single phase of a MFCellFAB. This is useful for debugging.
53 */
54 void
55 browseMFFAB(const MFCellFAB* a_dataPtr, int a_phase);
56 
57 ///
58 /** Writes a plotfile using the same format as writeEBHDF5, but
59  for a MFCellFAB. This is useful for debugging. *a_dataPtr is written
60  to the file given by a_filename.
61 */
62 void
63 writeMFFABname(const MFCellFAB* a_dataPtr,
64  int a_phase,
65  const char* a_filename);
66 
67 void
68 writeMFLevel(const LevelData<MFCellFAB>* a_dataPtr,
69  int a_phase);
70 
71 ///
72 /** View *a_dataPtr by writing it to an HDF5 plotfile (to a temporary file)
73  and then running ChomboVis with a python script which brings up a data
74  browser by default. The file has the same format as writeEBHDF5,
75  but for a single phase of a LevelData<MFCellFAB>. This is useful for debugging.
76 */
77 void
78 viewMFLevel(const LevelData<MFCellFAB>* a_dataPtr, int a_phase);
79 
80 ///
81 /** View *a_dataPtr by writing it to an HDF5 plotfile (to a temporary file)
82  and then running chombobrowser with a python script which brings up a data
83  browser by default. The file has the same format as writeEBHDF5,
84  but for a single phase of a LevelData<MFCellFAB>. This is useful for debugging.
85 */
86 void
87 browseMFLevel(const LevelData<MFCellFAB>* a_dataPtr, int a_phase);
88 
89 ///
90 /** Write a plotfile using the same format as writeEBHDF5, but
91  for a single phase of a LevelData<MFCellFAB>. Useful for debugging. *a_dataPtr is
92  written to the file given by a_filename.
93 */
94 void
95 writeMFLevelname(const LevelData<MFCellFAB>* a_dataPtr,
96  int a_phase,
97  const char* a_filename);
98 
99 ///
100 /** Write a plotfile using writeEBHDF5. Useful for debugging. *a_dataPtr is
101  written to a file named MFAMR.hdf5.
102 */
103 void
104 writeMFAMR(const Vector<LevelData<MFCellFAB>* >* a_dataPtr, int a_phase);
105 
106 ///
107 /** View *a_dataPtr by writing it to an HDF5 plotfile (to a temporary file)
108  and then running ChomboVis with a python script which brings up a data
109  browser by default. This is useful for debugging.
110 */
111 void
112 viewMFAMR(const Vector<LevelData<MFCellFAB>* >* a_dataPtr, int a_phase);
113 
114 ///
115 /** View *a_dataPtr by writing it to an HDF5 plotfile (to a temporary file)
116  and then running chombobrowser with a python script which brings up a data
117  browser by default. This is useful for debugging.
118 */
119 void
120 browseMFAMR(const Vector<LevelData<MFCellFAB>* >* a_dataPtr, int a_phase);
121 
122 ///
123 /** Write a plotfile using writeEBHDF5. Useful for debugging. *a_dataPtr is
124  written to the file given by a_filename.
125 */
126 void
127 writeMFAMRname(const Vector<LevelData<MFCellFAB>* >* a_dataPtr,
128  int a_phase,
129  const char* a_filename);
130 
131 
132 #endif //CH_USE_HDF5
133 
134 #include "NamespaceFooter.H"
135 #endif
Definition: MFCellFAB.H:22
void writeMFAMR(const Vector< LevelData< MFCellFAB > * > *a_dataPtr, int a_phase)
void browseMFAMR(const Vector< LevelData< MFCellFAB > * > *a_dataPtr, int a_phase)
void writeMFFABname(const MFCellFAB *a_dataPtr, int a_phase, const char *a_filename)
one dimensional dynamic array
Definition: Vector.H:53
void viewMFLevel(const LevelData< MFCellFAB > *a_dataPtr, int a_phase)
void viewMFFAB(const MFCellFAB *a_dataPtr, int a_phase)
void writeMFLevel(const LevelData< MFCellFAB > *a_dataPtr, int a_phase)
void writeMFLevelname(const LevelData< MFCellFAB > *a_dataPtr, int a_phase, const char *a_filename)
void writeMFFAB(const MFCellFAB *a_dataPtr, int a_phase)
void browseMFFAB(const MFCellFAB *a_dataPtr, int a_phase)
void browseMFLevel(const LevelData< MFCellFAB > *a_dataPtr, int a_phase)
void writeMFAMRname(const Vector< LevelData< MFCellFAB > * > *a_dataPtr, int a_phase, const char *a_filename)
void viewMFAMR(const Vector< LevelData< MFCellFAB > * > *a_dataPtr, int a_phase)