FreeFem / FreeFem-sources

FreeFEM source code
https://freefem.org/
Other
756 stars 188 forks source link

Possible regression with VTK file output #148

Closed jgonzalez49 closed 4 years ago

jgonzalez49 commented 4 years ago

I seem to have found a regression in the VTK file output after completing a simulation. Here is a sample script that will output a VTK file:

cubeflowtest.zip

I have traced the last version that worked for me back to version 4.4.2: https://github.com/FreeFem/FreeFem-sources/releases/tag/v4.4.2

When using older versions, I am able to open the VTK in Paraview and see the geometry and data correctly rendered. However, when using versions newer than 4.4.2, Paraview cannot recognize the geometry, and in at least one intermediate version it will not even recognize there is data (the most recent version, 4.6, seems to only produce a VTK where the geometry is not understood). Here is a zip file of resulting VTKs for different versions, and are labeled with the FreeFEM version used to make them as well as whether it was working for me in Paraview:

vtkfiles.zip

prj- commented 4 years ago

Use the .vtu format, not .vtk. Does this fix your issue?

jgonzalez49 commented 4 years ago

I am able to confirm that using my script with the .vtu format does produce a file that works with Paraview, thank you for the information.