Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xdmf: XML is default Format for DataItem #1432

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

slitvinov
Copy link

According to Default XML Attributes Format=XML should be the default for DataItem element. This is a valid XDMF file

$ cat tri.xdmf
<Xdmf
    Version="2">
  <Domain>
    <Grid>
      <Topology
	  TopologyType="Triangle"
	  Dimensions="1">
	<DataItem
	    Dimensions="1 3"
	    NumberType="Int">
	  0 1 2
	</DataItem>
      </Topology>
      <Geometry>
	<DataItem
	    Dimensions="3 3">
	  0 0 0
	  1 0 0
	  0 1 0
	</DataItem>
      </Geometry>
    </Grid>
  </Domain>
</Xdmf>

and meshio info returns after applying the modification.

$ meshio info tri.xdmf 
<meshio mesh object>
  Number of points: 3
  Number of cells:
    triangle: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant