aboutsummaryrefslogtreecommitdiff
path: root/CarpetDev/CarpetIOF5/src/tensor_component.cc
diff options
context:
space:
mode:
Diffstat (limited to 'CarpetDev/CarpetIOF5/src/tensor_component.cc')
-rw-r--r--CarpetDev/CarpetIOF5/src/tensor_component.cc22
1 files changed, 21 insertions, 1 deletions
diff --git a/CarpetDev/CarpetIOF5/src/tensor_component.cc b/CarpetDev/CarpetIOF5/src/tensor_component.cc
index c1575f232..5d4b281fc 100644
--- a/CarpetDev/CarpetIOF5/src/tensor_component.cc
+++ b/CarpetDev/CarpetIOF5/src/tensor_component.cc
@@ -4,7 +4,6 @@
#include "cctk.h"
#include "tensor_component.hh"
-#include "utils.hh"
@@ -22,6 +21,7 @@ namespace CarpetIOF5 {
char const * const name = CCTK_VarName (variable);
assert (name != 0);
+ m_name = string (name);
m_hdf5_tensor_component
= open_or_create_group (m_physical_quantity
@@ -70,6 +70,26 @@ namespace CarpetIOF5 {
+ void tensor_component_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_physical_quantity().get_link_destination (l_filename, l_objectname);
+ l_objectname += string ("/") + m_name;
+ }
+ filename = l_filename;
+ objectname = l_objectname;
+ }
+
+
+
bool tensor_component_t::
invariant ()
const