aboutsummaryrefslogtreecommitdiff
path: root/src/ioGH.h
diff options
context:
space:
mode:
authorrhaas <rhaas@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2013-08-10 08:01:28 +0000
committerrhaas <rhaas@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2013-08-10 08:01:28 +0000
commit3714256e9f1f253fa41e675283e74e04ac1237f2 (patch)
tree84e99e845f84b5ee9668e52c768e4f4a68df34d9 /src/ioGH.h
parent9bb09aae2b66a61eb39ed44b923308737aa232fc (diff)
add option "alias" to read datasets into different variables
Extents the file readers capabilities to not only take a cctk_iteration string but also a string alias. A value of IO::filereader_vars = "hydrobase::vel[0]{alias=admbase::shiftx}" will read the datasets admbase::shiftx into the variable hydrobase::vel[0]. The idea is to be able to read variables of evolution thorns into postprocessing thorns. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@304 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
Diffstat (limited to 'src/ioGH.h')
-rw-r--r--src/ioGH.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ioGH.h b/src/ioGH.h
index 998e6bf..7b5b16f 100644
--- a/src/ioGH.h
+++ b/src/ioGH.h
@@ -16,6 +16,10 @@ extern "C"
{
#endif
+/* advertise that this is the new version of this API, which has 'alias'
+ * members in the grid extension */
+#define IOUTIL_IOGH_HAS_ALIAS 1
+
/* IOUtil's GH extension structure */
typedef struct
@@ -36,6 +40,8 @@ typedef struct
CCTK_INT *do_inVars; /* flags indicating to read in variable i with
iteration number do_inVars[i] (or -1 to read
the last iteration */
+ const char **alias; /* name under which a variable appears in data files.
+ If NULL, use CCTK_FullName() */
} ioGH;