# vtkUnstructuredGridReader paraview frozen

**URL:** https://discourse.paraview.org/t/vtkunstructuredgridreader-paraview-frozen/2299
**Category:** ParaView Support
**Created:** [July 25, 2019, 2:02pm UTC](https://discourse.paraview.org/t/vtkunstructuredgridreader-paraview-frozen/2299 "2019-07-25T14:02:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![hgropelli](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hgropelli/32/1559_2.png) [@hgropelli](https://discourse.paraview.org/u/hgropelli)
#### Post date: [July 25, 2019, 2:02pm UTC](https://discourse.paraview.org/t/vtkunstructuredgridreader-paraview-frozen/2299/1 "2019-07-25T14:02:22Z")

</div>

i dont know what is happening, can somebody help me?  
[my\_file.vtk](https://discourse.paraview.org/uploads/short-url/peqCt7sM0XNSga2KZBKX0ui5T0J.vtk) (3.9 KB)

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [July 25, 2019, 2:19pm UTC](https://discourse.paraview.org/t/vtkunstructuredgridreader-paraview-frozen/2299/2 "2019-07-25T14:19:01Z")

</div>

Your data file is malformed. I can’t really make sense of what is in the file. Where did it come from?

---

<div class="post-metadata">

### Author: ![hgropelli](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hgropelli/32/1559_2.png) [@hgropelli](https://discourse.paraview.org/u/hgropelli)
#### Post date: [July 25, 2019, 3:01pm UTC](https://discourse.paraview.org/t/vtkunstructuredgridreader-paraview-frozen/2299/3 "2019-07-25T15:01:39Z")

</div>

so i have a fortran code for discrete elements modeling which prints for the GiD. Now im in process to implement a printer to the paraview. im basis what i have read on documentation im did this:  
WRITE(404) “# vtk DataFile Version 3.0”//char(10)  
WRITE(404) “Particle Field”//char(10)  
WRITE(404) “BINARY”//char(10)  
WRITE(404) “DATASET UNSTRUCTURED\_GRID”//char(10)  
WRITE(cbuffer,fmt="‘POINTS’,I10,A6)")system%no\_particles,“float”  
right after i would print the actual positions and then “POINT DATA” like velocities, spins, angles, radius, temperature…  
thanks for your attention

---

<div class="post-metadata">

### Author: ![hgropelli](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hgropelli/32/1559_2.png) [@hgropelli](https://discourse.paraview.org/u/hgropelli)
#### Post date: [July 25, 2019, 3:03pm UTC](https://discourse.paraview.org/t/vtkunstructuredgridreader-paraview-frozen/2299/4 "2019-07-25T15:03:25Z")

</div>

that archive “myfilevtk” which is in the first post should be like this(gid archive, openable in notepad)  
[COND3p\_2.post.res](https://discourse.paraview.org/uploads/short-url/kpNudIweytwg7qD9RFSg0NJ0Xjr.res) (306.9 KB)  
thank you for your attention

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [July 25, 2019, 4:17pm UTC](https://discourse.paraview.org/t/vtkunstructuredgridreader-paraview-frozen/2299/5 "2019-07-25T16:17:53Z")

</div>

How are you opening the file in Fortran? AFAIK, you should `open` it in “direct” access mode to avoid writing a record header for each data array you are writing.

Might I recommend writing a file in ASCII mode first and making sure that works before switching over to the BINARY format?
