forflush The Minimal Example to call flush To Compile it: gfortran test_minimal_fortran.f90 -o test_minimal_fortran