aboutsummaryrefslogtreecommitdiff
path: root/CarpetDev/CarpetIOF5_standalone/src/physical_quantity.hh
diff options
context:
space:
mode:
Diffstat (limited to 'CarpetDev/CarpetIOF5_standalone/src/physical_quantity.hh')
-rw-r--r--CarpetDev/CarpetIOF5_standalone/src/physical_quantity.hh67
1 files changed, 67 insertions, 0 deletions
diff --git a/CarpetDev/CarpetIOF5_standalone/src/physical_quantity.hh b/CarpetDev/CarpetIOF5_standalone/src/physical_quantity.hh
new file mode 100644
index 000000000..e2b025b81
--- /dev/null
+++ b/CarpetDev/CarpetIOF5_standalone/src/physical_quantity.hh
@@ -0,0 +1,67 @@
+#ifndef PHYSICAL_QUANTITY_HH
+#define PHYSICAL_QUANTITY_HH
+
+#include <hdf5.h>
+
+#include "coordinate_system.hh"
+
+
+
+namespace CarpetIOF5 {
+
+ namespace F5 {
+
+ class physical_quantity_t {
+
+ coordinate_system_t & m_coordinate_system;
+
+ int const m_group;
+ string m_name;
+
+ hid_t m_hdf5_physical_quantity;
+
+ physical_quantity_t ();
+ physical_quantity_t (physical_quantity_t const &);
+ physical_quantity_t operator= (physical_quantity_t const &);
+
+ public:
+
+ physical_quantity_t (coordinate_system_t & coordinate_system,
+ int group);
+
+ virtual
+ ~ physical_quantity_t ();
+
+ coordinate_system_t &
+ get_coordinate_system ()
+ const;
+
+ int
+ get_group ()
+ const;
+
+ string
+ get_name ()
+ const;
+
+ hid_t
+ get_hdf5_physical_quantity ()
+ const;
+
+ void
+ get_link_destination (int proc,
+ string & filename,
+ string & objectname)
+ const;
+
+ virtual bool
+ invariant ()
+ const;
+
+ };
+
+ } // namespace F5
+
+} // namespace CarpetIOF5
+
+#endif // #ifndef PHYSICAL_QUANTITY_HH