Unable to open vtu files written in fortran in Paraview


I’m trying to write a VTU file in fortran for opening in paraview. I had prior experience writing binary vtk legacy files using fortran which worked in paraview, I’m using the same logic to write the VTU files. But the binary files byte order seems to be a problem, because it shows an error “Error Parsing XML file line 5, column 0, byte index 232” on paraview. I’m writing in LITTLE_ENDIAN . I’m attaching my ascii file, paraview binary file generated using the ascii file and binary file generated from fortran for the same.

ASCII FILE- https://drive.google.com/file/d/1kZNenoZ8LXHf_Uo7U4cZ5wBzFutRrlmg/view?usp=sharing

Binary file for the same generated in paraview- https://drive.google.com/file/d/1tlFVLR7_-I1P9-DRqV_nhJ9OZLZcaBQz/view?usp=sharing

Binary file I wrote from fortran -https://drive.google.com/file/d/1UcpS4e2RJwhppHwSMHuEZc_X0XDclReR/view?usp=sharing

What am I missing? I’m using access=‘stream’,convert=‘Little_Endian’,format=‘unformatted’ in fortran as I did for legacy vtk files. Could someone point out the mistake?


@cory.quammen I have made the necessary changes so that the files are accessible now