I am looking for a strategy to implement the merging of file output when a coarray program is executed.
Assume I have a code being executed on multiple images. Ideally, the overall behavior of the code and some intermediate results would be documented in a small number of log files (possibly just one). At regular intervals (but not too frequently), the slave images would add content to these *.log files.
I am a bit at a loss to find an elegant solution to this problem, and if somebody here could share their experience with this I would be very grateful!