blob: 8a95d6faa6eaff4110e6901b336f6a475789e3af (
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
|
#ifndef TENSOR_COMPONENT_HH
#define TENSOR_COMPONENT_HH
#include <string>
#include <hdf5.h>
#include "data_region.hh"
namespace CarpetIOF5 {
namespace F5 {
class tensor_component_t {
data_region_t & m_data_region;
int const m_variable;
string m_name;
hid_t m_dataspace;
hid_t m_properties;
hid_t m_dataset;
tensor_component_t ();
tensor_component_t (tensor_component_t const &);
tensor_component_t operator= (tensor_component_t const &);
public:
tensor_component_t (data_region_t & data_region,
int variable);
virtual
~ tensor_component_t ();
data_region_t &
get_data_region ()
const;
hid_t
get_variable ()
const;
void
write (void const * data,
int cactus_datatype)
const;
virtual bool
invariant ()
const;
};
} // namespace F5
} // namespace CarpetIOF5
#endif // #ifndef TENSOR_COMPONENT_HH
|