I am trying to dump the particle_positions to a file.
Here is my
extremely inefficient script...
It's slow because you're writing to a text file. It would be faster to write to
binary. However, numpy's 'tofile' command will probably be faster than what
you've got, and it can write to a text file:
It would be something like:
In : import numpy as na
In : I = na.random.random(9)
In : I.tofile('I.dat', sep = " ", format="%1.5e\n")
I also suggest trying to save data using h5py, if they're going to be large fields.
sskory(a)physics.ucsd.edu o__ Stephen Skory
_.>/ _Graduate Student