Yes, that seems to work. Where did I get the idea that it was meep-all_wait instead of meep-all-wait? Whatever works, I hope this post clears up some confusion and serious nuisance for others as discovering these commands has for me.
Steve On Mon, 2016-09-05 at 20:43 -0700, Ardavan Oskooi wrote: > You can also just have (meep-all-wait) be the last line in your > file. > This is the SWIG wrapper for the all_wait() function defined in > src/mympi.cpp which invokes MPI_Barrier to force all the processors > to > reach the same point in the execution prior to exiting. > > > On 09/05/2016 12:39 PM, Steve wrote: > > > > Hello Meep users, > > > > I had, and found that several others had the problem that resulted > > in > > loss of output data at the end of the meep-mpi run. It occurs when > > one > > process finishes and notifies MPI, which immediately terminates all > > processors. > > > > Thanks to hints from meep-discuss, I found a solution that works > > with > > the Scheme interface. Adding the following two lines of code in my > > Scheme control file works for me: > > > > (define meep-all_wait) ; this is in the body of the control file > > before > > the run statement. > > > > (set! meep-all_wait true) ; This is the last line of code before > > the > > (exit) statement. > > > > I use (exit), I suppose it would work if you use (quit) or perhaps > > even > > if you just use the end of file for your exit. In any case, I still > > get > > the stupid "mpirun has exited due to ... " message, but no other > > trash > > and all of my data is output. > > > > Steve > > > > > > _______________________________________________ > > 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 _______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss