Data output with parallel

,

I recommend that you reduce your script to minimal working example. Your script contains more information than necessary, making it hard to read relevant part.

Regarding the difference between printing and saving as txt, I think you should not call np.savetxt from all the processors since all the processors will try to write to the same text file. You would want to gather the values to the root processor and save from only the root.

This is basically what you need to do

2 Likes