From: David Knezevic <dave@cf...> - 2005-08-15 22:09:07
Now that I have checked those changes in I think it may be useful to give
a summary of the changes to the XDA format. The main file that has changed
is src/mesh/xdr_io.C file.
- The first line of an xda file is now: "LIBM <num levels of refinement>",
e.g. "LIBM 0" for a level 0 mesh.
- The "number of elements in each block" line in the header is now "number
of elements in each block at each refinement level". That is, elements are
grouped in blocks by level, and within each level block they are grouped
in blocks of the same element type. So the number of entries in
this line becomes the number of levels in the mesh multiplied by the
number of element types.
- In the connectivity data, two more values were added at the end of each
line which correspond to the element's ID and the ID of its parent
respectivley. A parent ID of -1 indicates a level 0 element.
That's pretty much it. With this extra information that is written out, a
new mesh is built in read_mesh() by first building level 0 elements, and
then reconstructing the refinement hierarchy from there.
As I said in a previous email, there are still some issues with
parallel reading/writing of refined meshes.