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

Wrong dimension for 1D int arrays when padded #13

Open
Thomas-Ulrich opened this issue Mar 6, 2024 · 0 comments
Open

Wrong dimension for 1D int arrays when padded #13

Thomas-Ulrich opened this issue Mar 6, 2024 · 0 comments

Comments

@Thomas-Ulrich
Copy link
Contributor

1D int array (e.g. partition, faut-tag are padded, but not marked padded in the xdmf file).

    </Geometry>
    <Time Value="0"/>
    <Attribute Name="partition" Center="Cell">
     <DataItem  NumberType="Int" Precision="4" Format="Binary" Dimensions="4368">tpv5-fault_cell/mesh0/partition.bin</DataItem>
    </Attribute>
    <Attribute Name="fault-tag" Center="Cell">
     <DataItem  NumberType="Int" Precision="4" Format="Binary" Dimensions="4368">tpv5-fault_cell/mesh0/fault-tag.bin</DataItem>
    </Attribute>
    <Attribute Name="SRs" Center="Cell">
     <DataItem ItemType="HyperSlab" Dimensions="4368">
      <DataItem NumberType="UInt" Precision="4" Format="XML" Dimensions="3 2">0 0 1 1 1 4368</DataItem>
      <DataItem NumberType="Float" Precision="4" Format="Binary" Dimensions="1 2097152">tpv5-fault_cell/mesh0/SRs.bin</DataItem>
     </DataItem>
    </Attribute>
    <Attribute Name="SRd" Center="Cell">
     <DataItem ItemType="HyperSlab" Dimensions="4368">
      <DataItem NumberType="UInt" Precision="4" Format="XML" Dimensions="3 2">0 0 1 1 1 4368</DataItem>
      <DataItem NumberType="Float" Precision="4" Format="Binary" Dimensions="1 2097152">tpv5-fault_cell/mesh0/SRd.bin</DataItem>
     </DataItem>
    </Attribute>

(e.g. of tpv5, micro-mesh, with

export XDMFWRITER_ALIGNMENT=8388608
export XDMFWRITER_BLOCK_SIZE=8388608
export SC_CHECKPOINT_ALIGNMENT=8388608

)
I'm not really sure what should be the correct version (e.g. like for SRs with a HyperSlab?).
or just changing Dimensions="4368" to Dimensions="2097152"?

In anycase, it is not a problem for paraview.

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

No branches or pull requests

1 participant