I have a rather large program that periodically calls a subroutine. Inside the subroutine I write out a variable each time the subroutine is called. If I write it to the screen:
WRITE(*,*) HGT (1)
the correct value appears immediately. However, if I write it to a file
WRITE(4,*) HGT (1), the...