[MOAB-dev] Writing a tag
Grindeanu, Iulian R.
iulian at mcs.anl.gov
Tue Aug 19 15:04:11 CDT 2014
maybe you can "rewrite" only a few tags then
There is an optional parameter for list of tags that you want to write, in write_file method
The mesh will get written always.
For nc (climate files) we do have the option to write only variable data (which is by convention associated to some mesh file, that the user knows about)
Iulian
________________________________________
From: Gerd Heber [gheber at hdfgroup.org]
Sent: Tuesday, August 19, 2014 2:51 PM
To: Grindeanu, Iulian R.; MOAB dev
Subject: RE: Writing a tag
Let's say I do some kind of explicit dynamics or time-dependent
analysis and I would like to periodically create/add a few new tags to
a "history file". I don't need them in memory and can't keep them all
in memory anyway. I can buffer maybe 10 or 100, but then I need to flush
those tags to disk. Since the mesh doesn't change, it'd be odd to read
or write it over and over again.
G.
-----Original Message-----
From: Grindeanu, Iulian R. [mailto:iulian at mcs.anl.gov]
Sent: Tuesday, August 19, 2014 2:38 PM
To: Gerd Heber; MOAB dev
Subject: RE: Writing a tag
Hello,
I don't think you can append using moab interface.
You would need to load the h5m file (in memory), create the new tag, set values, and save the file again (with the same name if you want)
maybe there is an easier way, but I don't know it.
Iulian
________________________________________
From: moab-dev-bounces at mcs.anl.gov [moab-dev-bounces at mcs.anl.gov] on behalf of Gerd Heber [gheber at hdfgroup.org]
Sent: Tuesday, August 19, 2014 2:08 PM
To: MOAB dev
Subject: [MOAB-dev] Writing a tag
How can I append a tag to an existing MOAB file (which has a few other tags already)?
Maybe this is so obvious that the documentation doesn't talk about it, but it's unclear to me. I don't see, for example, how to sell this to write_file. Maybe that's not the right call anyway...
Thanks for your help.
G.
More information about the moab-dev
mailing list