diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-01-15 19:22:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-01-15 19:22:00 +0000 |
commit | 6b5a51a3a2347dd01a856cf10dd7e0bc8e72fa4e (patch) | |
tree | 3b53606f7d99a79fe702409c3ef7bae12b9b86a2 /CarpetDev/CarpetIOF5/src/simulation.cc | |
parent | e0cebba0741bdb08e3aa714396b249d564322863 (diff) |
CarpetIOF5: Write a meta-file containing an inventory
In addition to one data file per processor, also write out one
meta-data file containing an inventory and external links to the other
files.
Compiles. Untested.
darcs-hash:20080115192202-dae7b-e709063fdbe7d545389cdcb40846a10451e9f4c1.gz
Diffstat (limited to 'CarpetDev/CarpetIOF5/src/simulation.cc')
-rw-r--r-- | CarpetDev/CarpetIOF5/src/simulation.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/CarpetDev/CarpetIOF5/src/simulation.cc b/CarpetDev/CarpetIOF5/src/simulation.cc index 10441b498..98a0a3888 100644 --- a/CarpetDev/CarpetIOF5/src/simulation.cc +++ b/CarpetDev/CarpetIOF5/src/simulation.cc @@ -60,6 +60,26 @@ namespace CarpetIOF5 { + void simulation_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_timestep().get_link_destination (l_filename, l_objectname); + l_objectname += string ("/") + m_name; + } + filename = l_filename; + objectname = l_objectname; + } + + + bool simulation_t:: invariant() const |