Hi John, Assuming you are using Linux, you could try to write to standard output (instead of the file output) from your .ctl file and use the tee command from the terminal to also route write to a file. Use the -a flag in tee to append.
I hope this helps. Best regards, Abdullah On Thu, Nov 16, 2017, 16:46 John Weiner, <johwei...@gmail.com> wrote: > Dear meep experts, > > I am running a meep job in parallel using mpi . The run command from the > command line is "mpi-run -np 7 meep-mpi foo.ctl”. The job starts on 7 > cores. When the calculation finishes I want to print the result into a > file, and the file must open with the append option because the meep job is > run multiple times in a loop while systematically changing a parameter. So > far so good, but my problem is that, within the ctl file, if I use the > “display" command to direct the result to the previously opened file, I get > 7 instances of the result written to the file. All 7 processes execute the > display command. According to the mpi description in the Read-the-Docs the > “print" command will suppress all processes but one from executing the > print, but it only seems to work for standard output, not output to a > file. My question is: Is there a way to use print or display to direct > output to a file from only one process in a multi-process job? > > Thanks for any suggestions, > > John Weiner > _______________________________________________ > meep-discuss mailing list > meep-discuss@ab-initio.mit.edu > http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
_______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss