# xdmf topology constant

**URL:** https://discourse.paraview.org/t/xdmf-topology-constant/14385
**Category:** ParaView Support
**Created:** [April 11, 2024, 11:20am UTC](https://discourse.paraview.org/t/xdmf-topology-constant/14385 "2024-04-11T11:20:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![schupin](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/9e8a1a/32.png) [@schupin](https://discourse.paraview.org/u/schupin)
#### Post date: [April 11, 2024, 11:20am UTC](https://discourse.paraview.org/t/xdmf-topology-constant/14385/1 "2024-04-11T11:20:48Z")

</div>

Hi all,

I want to use xdmf files to load temporal datas saved as raw data.  
To get an example, I loaded my data into paraview and saved it as a .xmf file.  
This file works fine but the geometry/topology part is repeated everywhere. As it’s doesn’t change in time, I’ll like to have a cleaner file with a single definition of the geometry/topology.

To have a template, I tried to check the “mesh static over time” at save but paraview crashes with this error message:

```auto
XDMF Error in /builddir/build/BUILD/ParaView-v5.9.1/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx line 183 (Unknown Attribute Type None)
XDMF Error in /builddir/build/BUILD/ParaView-v5.9.1/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx line 183 (Unknown Attribute Type None)
XDMF Error in /builddir/build/BUILD/ParaView-v5.9.1/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx line 183 (Unknown Attribute Type None)
HDF5-DIAG: Error detected in HDF5 (1.10.5) thread 0:
  #000: ../../src/H5S.c line 921 in H5Sget_simple_extent_ndims(): not a dataspace
    major: Invalid arguments to routine
    minor: Inappropriate type
HDF5-DIAG: Error detected in HDF5 (1.10.5) thread 0:
  #000: ../../src/H5S.c line 1013 in H5Sget_simple_extent_dims(): not a dataspace
    major: Invalid arguments to routine
    minor: Inappropriate type

Loguru caught a signal: SIGSEGV
Stack trace:
3 0x7ffc7c5da7c0 [0x7ffc7c5da7c0]
2 0x7ff573fcdde6 xdmf2::XdmfDataDesc::GetShapeAsString() + 70
1 0x7ff573fcb715 xdmf2::XdmfDataDesc::GetShape(long long*) + 85
0 0x7ff5a0458b50 /lib64/libc.so.6(+0x4eb50) [0x7ff5a0458b50]
( 19.580s) [paraview] :0 FATL| Signal: SIGSEGV
Erreur de segmentation (core dumped)

```

I tried to manually change things in the .xmf file using xi:include, but paraview crashes with a segmentation core when I load the file

```auto
<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf xmlns:xi="http://www.w3.org/2003/XInclude" Version="2.2">
  <Domain>   
    <Geometry id="geom" GridType="Uniform">
      <Topology TopologyType="3DCORECTMesh" Dimensions="51 41 31"/>
      <Geometry GeometryType="ORIGIN_DXDYDZ">
        <DataItem Name="Origin" Dimensions="3" NumberType="Float" Precision="4" Format="XML">
          0 0 0 
        </DataItem>
        <DataItem Name="Spacing" Dimensions="3" NumberType="Float" Precision="4" Format="XML">
          2e-05 2e-05 2e-05 
        </DataItem>
      </Geometry>
    </Geometry>
    <Grid Name="raw_data" GridType="Collection" CollectionType="Temporal">
      <xi:include href="#geom" />
      <Grid GridType="Uniform">
        <Time TimeType="Single" Value="0"/>
        <Attribute Name="TempTotal" Active="1" AttributeType="Scalar" Center="Cell">
          <DataItem Dimensions="50 40 30" NumberType="Float" Precision="4" Format="HDF">raw_data.h5:/Block_0_t000000/Cell/TempTotal</DataItem>
        </Attribute>
      </Grid>
      <Grid GridType="Uniform">
        <Time TimeType="Single" Value="0.0015"/>
        <Attribute Name="TempTotal" Active="1" AttributeType="Scalar" Center="Cell">
          <DataItem Dimensions="50 40 30" NumberType="Float" Precision="4" Format="HDF">raw_data.h5:/Block_0_t0.0015/Cell/TempTotal</DataItem>
        </Attribute>
      </Grid>
      <Grid GridType="Uniform">
        <Time TimeType="Single" Value="0.003"/>
        <Attribute Name="TempTotal" Active="1" AttributeType="Scalar" Center="Cell">
          <DataItem Dimensions="50 40 30" NumberType="Float" Precision="4" Format="HDF">raw_data.h5:/Block_0_t00.003/Cell/TempTotal</DataItem>
        </Attribute>
      </Grid>
    </Grid>
  </Domain>
</Xdmf>

```

Here is the error received :

```auto
XDMF Error in /builddir/build/BUILD/ParaView-v5.9.1/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx line 183 (Unknown Attribute Type None)
XDMF Error in /builddir/build/BUILD/ParaView-v5.9.1/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx line 183 (Unknown Attribute Type None)
XDMF Error in /builddir/build/BUILD/ParaView-v5.9.1/VTK/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfAttribute.cxx line 183 (Unknown Attribute Type None)
Test_regroup.xmf:17: element include: XInclude error : Invalid fragment identifier in URI Test_regroup.xmf#geom use the xpointer attribute

```

I also tried on a 5.12 version a get the same behavior.

If anyone know how to solve it, it would be great !  
Thank you by advance for any help !

You’ll find a sample dataset attached.  
[Working\_file.xmf](https://discourse.paraview.org/uploads/short-url/sDX9yC7PHUV9UWyK4XdTrK8kTA5.xmf) (2.4 KB)  
[raw\_data.h5](https://discourse.paraview.org/uploads/short-url/xoHNxe2XPY94RE7rGLQpjO1ULMe.h5) (711.1 KB)
