How do I flush output to file after each write with a gfortran Fortran 90 program?

前端 未结 4 1206
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-04 17:31

I am running a loop in a Fortran 90 program that outputs numerical values to an output file for each iteration of the loop. The problem is that the output is not saved to th

4条回答
  •  盖世英雄少女心
    2021-01-04 18:15

    The other way, if gfortran implements it, is to call the non-standard subroutine flush. Not all compilers do implement this.

提交回复
热议问题