Thanks Mecej4 and John,
I thought i missed some tricky I/O Fortran function which can concatenate (you are right, Mecej4, this is what i need, and yes, this is worth doing otherwise you get 50k files per typical run on 1000 cores. The load speed of one larger file versus many smaller is not influenced much because this speed is already close to the limit of the hardware).
The cat command would be probably easiest way to achieve that by calling command prompt from the Fortran source. Will be hilarious if FTN95 will do this operating system command despite this will be under Linux (Linux hacks made that you almost do not feel differences when you use Windows software, it works in both systems as if all is native, you click on Windows file and it magically works. Linux Mint specifically, by the way, Ubuntu as is out of the box is a cr#p, needs so many adjustments, that you will break and reinstall it several times before it will be usable with FTN95).
As to direct access files - that would be a good idea to try if it will work with many threads simultaneously, it may not like that. If you for example try to use one large global array in RAM memory and write there in parallel even into completely separate address spaces - this will not work, or at least i did not succeed no matter what i tried
John, i mark each file with distinctive names with keywords and numbering. Then the code when reading them understands itself what is what. I rarely can get now any information from one line for the name of thread or from the massive data of each thread's file and need to load it all and see all graphically.
Life becomes more crazy with each year, now terabytes become common, next are petabytes... Have anyone here thought to adopt AI like ChatGPT to make it to understand your need and quickly do some routinely repeating tasks? You just tell: 'Merge these files and prepare the figures like last time' and all is done same second. Or 'Create me prototype of Property Sheet with 13 empty tabs with the same design like in the ABC code' and all is done instantly instead of 3 hours later like you would do manually 😃