[MOAB-dev] Writing a tag

Gerd Heber gheber at hdfgroup.org
Tue Aug 19 16:16:05 CDT 2014


Yes, having the ability to write arbitrary MOAB tag-backed PETSc Vecs would be great.
"Primary fields" is a relative term and maybe not even meaningful in certain
circumstances.

Thanks, G.

-----Original Message-----
From: Vijay S. Mahadevan [mailto:vijay.m at gmail.com] 
Sent: Tuesday, August 19, 2014 2:38 PM
To: Gerd Heber
Cc: MOAB dev
Subject: Re: [MOAB-dev] Writing a tag

You can load a file with few tags already defined, create a new tag on a range of entities and write it back out with write_file to see the additional tag also. Use mbsize -t option to see the tags.

If this is still related to DMMoab, are you looking for a way to define an auxillary (derived) variable, that is not part of the original linear system (containing only primary variables) and the dump out all the data with DMMoabOutput ? Currently, DMMoabOutput explicitly only loops over the primary fields and writes out the tags in the file. If there is a need to define auxillary variables, I can certain add that capability since I can see several different use cases that would benefit.

Vijay

On Tue, Aug 19, 2014 at 2:08 PM, Gerd Heber <gheber at hdfgroup.org> wrote:
> 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