aboutsummaryrefslogtreecommitdiff
path: root/CarpetDev/CarpetIOF5/src/tensor_component.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@aei.mpg.de>2005-04-25 16:10:00 +0000
committerErik Schnetter <schnetter@aei.mpg.de>2005-04-25 16:10:00 +0000
commitc3697a07c1256db7185c24750a4d3ca0506436d4 (patch)
tree207d09d80c0a369522f3ab83677d46fd8f0fa86d /CarpetDev/CarpetIOF5/src/tensor_component.hh
parent384d2acbe1f33481841c38823853fbd22976903c (diff)
CarpetIOF5: Start an I/O thorn that uses the F5 file format
darcs-hash:20050425161012-891bb-e7d03751330723d007d3dc97b0d56addc3ccda48.gz
Diffstat (limited to 'CarpetDev/CarpetIOF5/src/tensor_component.hh')
-rw-r--r--CarpetDev/CarpetIOF5/src/tensor_component.hh48
1 files changed, 48 insertions, 0 deletions
diff --git a/CarpetDev/CarpetIOF5/src/tensor_component.hh b/CarpetDev/CarpetIOF5/src/tensor_component.hh
new file mode 100644
index 000000000..39a8ecf23
--- /dev/null
+++ b/CarpetDev/CarpetIOF5/src/tensor_component.hh
@@ -0,0 +1,48 @@
+#ifndef TENSOR_COMPONENT_HH
+#define TENSOR_COMPONENT_HH
+
+#include <hdf5.h>
+
+#include "physical_quantity.hh"
+
+
+
+namespace CarpetIOF5 {
+
+ namespace F5 {
+
+ class tensor_component_t {
+
+ physical_quantity_t & m_physical_quantity;
+
+ int const m_variable;
+
+ hid_t m_hdf5_tensor_component;
+
+ public:
+
+ tensor_component_t (physical_quantity_t & physical_quantity,
+ int variable);
+
+ virtual
+ ~ tensor_component_t ();
+
+ hid_t
+ get_variable ()
+ const;
+
+ hid_t
+ get_hdf5_tensor_component ()
+ const;
+
+ virtual bool
+ invariant ()
+ const;
+
+ };
+
+ } // namespace F5
+
+} // namespace CarpetIOF5
+
+#endif // #ifndef TENSOR_COMPONENT_HH