blob: d3a6611aa5db157c294a25b64014c1517d50dd24 (
plain)
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
|
#ifndef WRITER_HH
#define WRITER_HH
#include "cctk.h"
#include "bbox.hh"
#include "defs.hh"
#include "dh.hh"
#include "vect.hh"
#include "file.hh"
#include "physical_quantity.hh"
#include "simulation.hh"
#include "timestep.hh"
#include "topology.hh"
namespace CarpetIOF5 {
class writer_t {
cGH const * const m_cctkGH;
int const m_variable;
public:
writer_t (cGH const * cctkGH,
int variable);
void
write (F5::file_t & file)
const;
private:
void
write_meta (F5::file_t & file)
const;
void
write_one_mglevel (F5::timestep_t & timestep)
const;
void
write_global (F5::timestep_t & timestep)
const;
void
write_one_reflevel (F5::timestep_t & timestep)
const;
void
write_one_map (F5::timestep_t & timestep)
const;
void
write_one_component (F5::physical_quantity_t & physical_quantity)
const;
static bbox<int,dim> const &
determine_region (dh::light_dboxes const & light_boxes);
};
} // namespace CarpetIOF5
#endif // #ifndef WRITER_HH
|