# Unable to visualise XDMF checkpoint in 1D

**URL:** https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781
**Category:** ParaView Support
**Created:** [October 16, 2019, 9:02am UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781 "2019-10-16T09:02:21Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![Rem](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@Rem](https://discourse.paraview.org/u/Rem)
#### Post date: [October 16, 2019, 9:02am UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/1 "2019-10-16T09:02:21Z")

</div>

Hi all,

I’m writing xdmf files with checkpointing with FEniCS. everything works fine in 2D/3D, but 1D fields cannot be visualise in Paraview 5.7 (nor in the previous versions).

Here’s an exemple file:[u\_checkpoint.h5](https://discourse.paraview.org/uploads/short-url/WU8X9QmjjJdEVsl54KEh7fH1pm.h5) (7.7 KB) [u\_checkpoint.xdmf](https://discourse.paraview.org/uploads/short-url/v9RsbIhi0SPwNORY7dXJJfcHBon.xdmf) (1.2 KB)

Does anyone has an idea ?

Thanks in advance!

Rem

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 17, 2019, 2:37am UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/2 "2019-10-17T02:37:36Z")

</div>

the `Center="Other"` attribute in your xdmf file is not supported.

---

<div class="post-metadata">

### Author: ![Rem](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@Rem](https://discourse.paraview.org/u/Rem)
#### Post date: [October 17, 2019, 7:42am UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/3 "2019-10-17T07:42:02Z")

</div>

thanks for the reply. how can I check if this attribute is also present in these files ? (these files have been generated with the same FEniCS function but in 3D)

I’d like to know if it’s a FEniCS issue 🙂

[u\_checkpoint.h5](https://discourse.paraview.org/uploads/short-url/9aMcFxcFSTyEtKB9rpGc8PHhcEp.h5) (16.0 KB) [u\_checkpoint.xdmf](https://discourse.paraview.org/uploads/short-url/a35BinPb1a8cTkZQGM8yccwYKF0.xdmf) (1.2 KB)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 17, 2019, 7:51am UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/4 "2019-10-17T07:51:41Z")

</div>

You can check by reading the .xdmf file.

---

<div class="post-metadata">

### Author: ![Rem](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@Rem](https://discourse.paraview.org/u/Rem)
#### Post date: [October 17, 2019, 7:54am UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/5 "2019-10-17T07:54:44Z")

</div>

Cheers. It appears that there is indeed an `Center="Other"` attribute in this xdmf file.[u\_checkpoint.h5](https://discourse.paraview.org/uploads/short-url/9aMcFxcFSTyEtKB9rpGc8PHhcEp.h5) (16.0 KB) [u\_checkpoint.xdmf](https://discourse.paraview.org/uploads/short-url/a35BinPb1a8cTkZQGM8yccwYKF0.xdmf) (1.2 KB)

Yet it’s readeable in Paraview. It must be supported then

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 17, 2019, 7:59am UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/6 "2019-10-17T07:59:53Z")

</div>

My bad, the warning I was seeing was a red herring.

Actually, your first file seems to load fine, it just contains 3 cells and 4 points;

---

<div class="post-metadata">

### Author: ![Rem](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@Rem](https://discourse.paraview.org/u/Rem)
#### Post date: [October 17, 2019, 8:18am UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/7 "2019-10-17T08:18:25Z")

</div>

I can load but I can’t plot over line.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/e/ec32597626f691a2fa9d52c64d3089ff4033cb7a.png)  
This is the message I get when loading with paraview  
“Finite element function of family CG and degree 1 on Polyline is not supported.  
Unable to get number of points for cell type 0”

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 17, 2019, 8:55am UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/8 "2019-10-17T08:55:57Z")

</div>

The message is quite self explanatory. Your dataset contains only a line. You can’t plot over line when your dataset is only a line.

---

<div class="post-metadata">

### Author: ![Rem](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@Rem](https://discourse.paraview.org/u/Rem)
#### Post date: [October 17, 2019, 8:59am UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/9 "2019-10-17T08:59:24Z")

</div>

Yes I understand that, yet I’ve been able to plot over line with a line dataset before.

See this example :

 ![image](https://discourse.paraview.org/uploads/default/original/2X/8/8766f1d7c8af1a4ce42f5ea0ed2f9e44e632b040.png)

Same data, generating without checkpointing though. But i’m able to plot over line even though it’s a 1D dataset.

[u\_normal.h5](https://discourse.paraview.org/uploads/short-url/1TWeZGs8B9528JiMLRbXpM0STYo.h5) (6.9 KB) [u\_normal.xdmf](https://discourse.paraview.org/uploads/short-url/nU0DVbDzoP0qfYBFFTaRGtMgmin.xdmf) (660 Bytes)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 17, 2019, 9:08am UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/10 "2019-10-17T09:08:19Z")

</div>

My bad, the reason because you can’t plot over line your first dataset is because it does not contains any data, only geometry.

---

<div class="post-metadata">

### Author: ![Rem](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@Rem](https://discourse.paraview.org/u/Rem)
#### Post date: [October 17, 2019, 11:13am UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/11 "2019-10-17T11:13:49Z")

</div>

I’m afraid it does have data in it since I’m able to import it and use it in a FEniCS script. 😕

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 17, 2019, 11:43am UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/12 "2019-10-17T11:43:53Z")

</div>

The data is ignored because of the `Center="Other"` attribute

---

<div class="post-metadata">

### Author: ![Rem](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@Rem](https://discourse.paraview.org/u/Rem)
#### Post date: [October 17, 2019, 11:49am UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/13 "2019-10-17T11:49:43Z")

</div>

How come in the 3D case, where the attribute `Center="Other"` is also present, visualisation is possible ?

 ![image](https://discourse.paraview.org/uploads/default/original/2X/2/26fd2dc4cbf3504e9ff46008c958123ecb90b25b.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 17, 2019, 11:57am UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/14 "2019-10-17T11:57:32Z")

</div>

No idea, this would require investigation. In any case, the bug is in ParaView/VTK side, not FEniCS.

---

<div class="post-metadata">

### Author: ![Rem](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@Rem](https://discourse.paraview.org/u/Rem)
#### Post date: [March 11, 2021, 1:48pm UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/15 "2021-03-11T13:48:13Z")

</div>

Hi Mathieu, this bug still occurs in the latest version of Paraview. Any update on the matter ?

Cheers  
Rem

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [March 11, 2021, 1:49pm UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/16 "2021-03-11T13:49:47Z")

</div>

Not that I’m aware of. You may want to test with master and then, is the issue still present, open an issue on [https://gitlab.kitware.com/paraview/paraview/-/issues](https://gitlab.kitware.com/paraview/paraview/-/issues).

---

<div class="post-metadata">

### Author: ![Rem](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@Rem](https://discourse.paraview.org/u/Rem)
#### Post date: [March 11, 2021, 2:13pm UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/17 "2021-03-11T14:13:28Z")

</div>

I’ve just opened this issue 🙂

[https://gitlab.kitware.com/paraview/paraview/-/issues/20549](https://gitlab.kitware.com/paraview/paraview/-/issues/20549)

---

<div class="post-metadata">

### Author: ![Rem](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/5fc32e/32.png) [@Rem](https://discourse.paraview.org/u/Rem)
#### Post date: [May 19, 2021, 1:43pm UTC](https://discourse.paraview.org/t/unable-to-visualise-xdmf-checkpoint-in-1d/2781/18 "2021-05-19T13:43:39Z")

</div>

Hi Mathieu, any chance there’s an update on this bug?

Cheers,  
Rem
