diff options
Diffstat (limited to 'CarpetDev/CarpetIOF5/src/physical_quantity.cc')
-rw-r--r-- | CarpetDev/CarpetIOF5/src/physical_quantity.cc | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/CarpetDev/CarpetIOF5/src/physical_quantity.cc b/CarpetDev/CarpetIOF5/src/physical_quantity.cc index 2c4a24d65..0b6720ece 100644 --- a/CarpetDev/CarpetIOF5/src/physical_quantity.cc +++ b/CarpetDev/CarpetIOF5/src/physical_quantity.cc @@ -4,7 +4,6 @@ #include "cctk.h" #include "physical_quantity.hh" -#include "utils.hh" @@ -26,6 +25,7 @@ namespace CarpetIOF5 { { * p = static_cast<char> (tolower (* p)); } + m_name = string (name); m_hdf5_physical_quantity = open_or_create_group (m_coordinate_system @@ -76,6 +76,26 @@ namespace CarpetIOF5 { + void physical_quantity_t:: + get_link_destination (string & filename, + string & objectname) + const + { + static bool initialised = false; + static string l_filename; + static string l_objectname; + if (not initialised) + { + initialised = true; + get_coordinate_system().get_link_destination (l_filename, l_objectname); + l_objectname += string ("/") + m_name; + } + filename = l_filename; + objectname = l_objectname; + } + + + bool physical_quantity_t:: invariant () const |