EOF too early - gidpost - Fortran

Moderator: GiD Team

Post Reply
j.m.
Posts: 3
Joined: Fri Feb 16, 2018 11:07 am

EOF too early - gidpost - Fortran

Post by j.m. »

Dear GiD-community,

i am using the GiDpost interface to print the results of my inhouse FE code.
The code is written in Fortran (2003+).

Everything is working fine except for one error when loading the result-files from GiD.
The error message is: "EOF too early"

Searching for this problem i found that every "*.res" file should start with "GiD Post Results File 1.0"

I was looking for a function to write user-defined comments to the result file, like e.g. GiD_fResultUserDefined
to add this line to the result file before printing the requested output variables.

Unfortunately the function mentioned above seems not to be included in the fortran interface. Since i dont want
to mess with the implementation of GiDpost i am currently using a workaround (editing the file after the analysis)...

Is there a simpler - more elegant - way to resolve this error?

Best regards
User avatar
ronda
Posts: 8
Joined: Mon Oct 13, 2014 9:29 am

Re: EOF too early - gidpost - Fortran

Post by ronda »

Hello, whenever you invoke GiD_OpenPostResultFile or GiD_fOpenPostResultFile that header is written to the file.

How are you creating the file?
Post Reply