I am running a simulation of which I would like to print the value of a current variable to stdout (integration time step), such that I can have a "running" counter on the console.
I have to admit that I am not too used to the FORMAT concept of FORTRAN but I guess I understood the issue with the "1X" etc. I some documentation I found that putting the character "+" instead of a blank or a "1X" will result in printing the given value in the same line. I thought that might do the trick.
As a simple example I would like to print the values of k as a counter to stdout:
100 FORMAT (1X, I3)
which is nice if I want all the numbers below each other. But what I would like to have is that in each iteration of the loop, the previous value of k is overwritten "on top" of the previous value of k.
My idea was to place the identifier "+" (as found in a FORTRAN book) as the first character of the output line to tell the "printer" to "not go" into a new line. But with that I get error messages from the compiler.
My idea was:
100 FORMAT (+, I3)
such that the output line internally lokks like "+###" such that no new line is started. I can find the "+" in some docs but no code example where it is used.
I hope I explained the problem thoroughly and that somebody can give me a hint.
Thanks in advance