Reading ensight binary files with few points
Attached, you find a simple program, which is a very strong simplification of how we write out the results of our research code (written in Fortran) as Ensight 6 binary files.
With this simplified code (and our full code) we observe, that Paraview is unable to read case files whenever the number of points is small. For example, in the attached program, if nb_points = 1 is set, Paraview will not be able to load the case file, while there is no error message when setting nb_points = 100. In both cases the ens_checker utility returns with a successful verification. Thus, the error doesn't seem to be in the Ensight files themselves, but rather in the reader used by Paraview.
-
Reading the created Ensight files into Paraview has been tested with ParaView versions 5.9.1 and 5.10.1, but this problem has been known in our group for quite a while. So it should not be limited to recent versions.
-
The Fortran test code has been compiled with Intel oneapi_2021.4.0.3422, but the same has occured in the past with older Intel Fortran compilers.
-
The error message shown is: [paraview ]vtkEnSight6BinaryReader:2831 ERR| vtkEnSight6BinaryReader (0x1d3b7f70): Read failed.