I use the following statement to enable writing progress lines onto the screen on top of each other.
OPEN (6, CARRIAGECONTROL = “FORTRAN”)
When a “+” is the first character in subsequent WRITE statements the output is on top of the previous line on the monitor. It is useful for updating program progress without causing the output to scroll up and up. The effect lasts until CLOSE (6) occurs.
I think the feature is obsolete or deleted from current Fortran. I think this because PGI Fortran produces a syntax error for the line. GNU Fortran also produces a syntax error. However, Intel Fortran accepts it. Is there a similiar statement that I can use with PGI Fortran that will produce the same effect?
By the way, ADVANCE = “NO” is not an adequate replacement. It writes on the same line, but after the last output. Also, it doesn’t display on the screen right away. It waits until all the output is done.