Dear Meep users,
is it possible to write files after running a simulation? For the following code, I get only the file test1.dat with its content. The second file test2.dat is also created, but it is empty, despite the flush() command. import meep as mp sim = mp.Simulation(.) if mp.am_master(): with open("test1.dat", 'w') as f: f.write("test") sim.run(.) if mp.am_master(): with open("test2.dat", 'w') as f: f.write("test") f.flush() Best regards, Holger
_______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss