libmesh icon indicating copy to clipboard operation
libmesh copied to clipboard

Write extra element/node integers when writing the mesh

Open YaqiWang opened this issue 5 years ago • 2 comments

Since extra element/node integers are part of the mesh, it is desirable to write them into files when the file format supports. With Exodus being an example, it does not support this feature directly, but we can use elemental/nodal variables with the names being the integer names to output. This will make some tests using integers exodiff but we should be able to just regold them. Our native formats xda, xdr, checkpoint files, may already support this. Tag @friedmud

YaqiWang avatar Oct 19 '20 21:10 YaqiWang

Weren't you the one who added extra element integer support to ExodusII_IO? But I guess that's just the bare beginnings of support - requiring separate manual variable writes, requiring manually specifying names to read, no support for node integers yet, no support for Nemesis yet.

I've added automatic read/write support (plus unit tests!) in checkpoint files, but not in xda/xdr yet.

roystgnr avatar Oct 19 '20 23:10 roystgnr

I added the reading elemental variables for element integers only.

YaqiWang avatar Oct 20 '20 07:10 YaqiWang