I/O buffering behavior (2nd attempt)

Is possible to clarify how to use function setvbuf in fortran code? Any example will be very useful.

Is possible to increase the buffer size to avoid I/O operations between file and program?

Is possible to change buffer behavior via setvbuf function for scratch files too?



could you add any comment to my questions?


Sorry Michal, I’ve never used setvbuf myself so don’t have any insight here. I was hoping another user might step in. No such luck.

Although I’m really busy right now, I’ll try and set aside a hour to write-up and example for you. The the lib3f Fortran setvbuf is just a wrapper for the C system call so it shouldn’t be too hard to pull something together.

  • Mat