I would like to define a variable for naming a file within a write statement in such a way that this variable is updated each time I run a new loop of my program.
The new name would be of the form "filename"_irun, where only irun (the number of the current run) is being updated. As such, irun would be used as a tag to distinguish between different output files according to the run number. Can you please advise me how to do this with Compaq Visual Fortran. Since "filename" is a character variable and irun is an integer variable for a do loop of the form do irun =1 501
and the write statement is contained within the above do loop the appropriate solution does not appear obvious to me.
Many thanks for your help.