[MOAB-dev] Periodically flushing tags to disk?
Grindeanu, Iulian R.
iulian at mcs.anl.gov
Thu Jul 2 10:07:46 CDT 2015
Hello,
AFAIK, Moab does not offer a way to write only tags on a file.
There is a way to write only selected mesh sets and selected tags
virtual ErrorCode write_file( const char* file_name,
const char* file_type = 0,
const char* options = 0,
const EntityHandle* output_sets = 0,
int num_output_sets = 0,
const Tag* tag_list = 0,
int num_tags = 0 );
If output_sets is 0, complete mesh is written
if tag_list is 0, all tags pertinent to the mesh entities in "output_sets" are written
If tags_list is not NULL, and contains an array of tags, only those will be written to the file
After writing this file, you may delete the tags to free up memory
Not sure if this helps your scenario
Thanks,
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: Thursday, July 02, 2015 9:36 AM
To: MOAB dev
Subject: [MOAB-dev] Periodically flushing tags to disk?
Happy 4th of July everybody!
We are currently running a simulation, which creates new tags at runtime
and only at the end writes the entire MOAB to disk (via DMMoabOutput).
This method is wasteful and dangerous because we might run out of memory
and, in case of premature termination, end up with nothing (on disk).
We were wondering if there was a way to flush tags to disk periodically
and limit our memory footprint? Ideally, this would not require writing
the mesh again. We are also not wedded to the PETSc MOAB interface.
If there is an MOAB-native way, that would be fine as well.
Thanks, G.
More information about the moab-dev
mailing list