-
Notifications
You must be signed in to change notification settings - Fork 1
/
dumps.h
executable file
·245 lines (201 loc) · 5.72 KB
/
dumps.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
#ifndef _DUMPS_H
#define _DUMPS_H
#include "extmath.h"
void create_wfilter(f_complex* wfilter, const char* name);
void create_longpass_filter(f_complex* wfilter, float_type lambda);
void create_shortpass_filter(f_complex* wfilter, float_type lambda);
class dump_type_empty_class
{
protected:
FILE* dumpfid;
int tN, xN, yN, zN;
int nz_denom;
int iscomplex;
long int piece_size;
long int header_ofs;
dump_type_empty_class() {};
virtual long int fileofs() = 0;
public:
~dump_type_empty_class();
virtual void init_dumpfile(const char* filename);
virtual void init_dumpfile(FILE* fid, int i);
virtual void dump();
virtual void dump_write(void* buf);
virtual void dump_noflush() = 0;
};
class dump_type_full_class : public dump_type_empty_class
{
protected:
dump_type_full_class() {};
virtual long int fileofs();
public:
dump_type_full_class(FILE* optfid, int i);
virtual void dump_noflush();
~dump_type_full_class() {};
};
class dump_type_maxI_class : public dump_type_empty_class
{
protected:
f_complex* wfilter;
virtual long int fileofs();
dump_type_maxI_class() {};
public:
dump_type_maxI_class(FILE* optfid, int i);
~dump_type_maxI_class();
virtual void dump_noflush();
};
class dump_type_flux_class : public dump_type_maxI_class
{
public:
dump_type_flux_class(FILE* optfid, int i) : dump_type_maxI_class(optfid, i) {};
~dump_type_flux_class() {};
virtual void dump_noflush();
};
class dump_type_duration_class : public dump_type_maxI_class
{
public:
dump_type_duration_class(FILE* optfid, int i) : dump_type_maxI_class(optfid, i) {};
~dump_type_duration_class() {};
virtual void dump_noflush();
};
class dump_type_fluxk_class : public dump_type_maxI_class
{
public:
dump_type_fluxk_class() {};
dump_type_fluxk_class(FILE* optfid, int i);
~dump_type_fluxk_class() {};
virtual void dump_noflush();
virtual long int fileofs();
};
class dump_type_ysection_class : public dump_type_empty_class
{
protected:
int ny;
bool mydump;
virtual long int fileofs();
virtual void init_ny(FILE* fid, int num);
dump_type_ysection_class() {};
fftwt_plan fft_bwplan_sectiont;
public:
dump_type_ysection_class(FILE* optfid, int num);
~dump_type_ysection_class() {};
virtual void dump_noflush();
};
class dump_type_ysectionk_class : public dump_type_ysection_class
{
protected:
virtual void init_ny(FILE* fid, int num);
virtual long int fileofs();
public:
dump_type_ysectionk_class(FILE* optfid, int num);
virtual void dump_noflush();
};
class dump_type_ysection_maxI_class : public dump_type_ysection_class
{
protected:
f_complex* wfilter;
dump_type_ysection_maxI_class() {};
public:
dump_type_ysection_maxI_class(FILE* optfid, int num);
~dump_type_ysection_maxI_class();
virtual void dump_noflush();
};
class dump_type_ysection_flux_class : public dump_type_ysection_maxI_class
{
public:
dump_type_ysection_flux_class(FILE* optfid, int num) : dump_type_ysection_maxI_class(optfid,num) {};
~dump_type_ysection_flux_class() {};
virtual void dump_noflush();
};
class dump_type_youngy_class : public dump_type_ysection_maxI_class
{
public:
dump_type_youngy_class(FILE* optfid, int num);
~dump_type_youngy_class();
virtual void dump_noflush();
virtual long int fileofs();
};
class dump_type_field_axis_class : public dump_type_empty_class
{
protected:
virtual long int fileofs();
dump_type_field_axis_class() {};
public:
dump_type_field_axis_class(FILE* optfid, int num);
~dump_type_field_axis_class() {};
virtual void dump_noflush();
};
class dump_type_plasma_axis_class : public dump_type_field_axis_class
{
protected:
dump_type_plasma_axis_class() {};
public:
dump_type_plasma_axis_class(FILE* optfid, int num);
~dump_type_plasma_axis_class() {};
virtual void dump_noflush();
};
class dump_type_Z_axis_class : public dump_type_plasma_axis_class
{
protected:
dump_type_Z_axis_class() {};
public:
dump_type_Z_axis_class(FILE* optfid, int num) : dump_type_plasma_axis_class(optfid, num) {};
~dump_type_Z_axis_class() {};
virtual void dump_noflush();
};
class dump_type_average_spectrum_class : public dump_type_field_axis_class
{
protected:
dump_type_average_spectrum_class() {};
public:
dump_type_average_spectrum_class(FILE* optfid, int num);
~dump_type_average_spectrum_class() {};
virtual void dump_noflush();
};
class dump_type_full_plasma_class : public dump_type_full_class
{
protected:
dump_type_full_plasma_class() {};
public:
dump_type_full_plasma_class(FILE* fid, int num);
~dump_type_full_plasma_class() {};
virtual void dump_noflush();
};
class dump_type_plasma_max_class : public dump_type_maxI_class
{
protected:
dump_type_plasma_max_class() {};
public:
dump_type_plasma_max_class(FILE* fid, int num);
~dump_type_plasma_max_class() {};
virtual void dump_noflush();
};
class dump_type_ysection_plasma_class : public dump_type_ysection_class
{
protected:
dump_type_ysection_plasma_class() {};
public:
dump_type_ysection_plasma_class(FILE* fid, int num);
~dump_type_ysection_plasma_class() {};
virtual void dump_noflush();
};
class dump_type_ysection_plasma_max_class : public dump_type_ysection_plasma_class
{
protected:
dump_type_ysection_plasma_max_class() {};
public:
dump_type_ysection_plasma_max_class(FILE* fid, int num);
~dump_type_ysection_plasma_max_class() {};
virtual void dump_noflush();
};
class dump_manager_class
{
int dumpN;
dump_type_empty_class** dump_slaves;
dump_manager_class();
public:
dump_manager_class(FILE* optfid);
~dump_manager_class();
void dump();
};
#endif