<div dir="ltr"><div>Hi all,<br><br>I am stuck with a problem
regarding ParaView (version 4.0.1 64-bit), running on Ubuntu 14.04. I have written a python driver script that calls for a script that is executed with pvpython. I need to do this about 100.000 times. I have thus written a loop around the call to pvpython to execute things. It seems however that I execute one process at a time, after which paraview closes (which I want) and then the next process is called. The processes I am running are however not super intensive, so it should be possible to run 10 to 100 of them at the same time in parallel. I don't seem to find how I can do this. Is there anybody who can provide me with an idea how to do this?<br><br></div><div>With kind regards,<br></div><div>Tim<br></div><div><br></div>Example script of what I have at the moment:<br><br>import subprocess<br>import numpy as np<br>import shutil<br><br>def main():<br><br> for-loop generating filenames<br> print 'We are at', filename3<br> subprocess.call(['/usr/bin/pvpython', 'MakeMovie.py', '-f', filename3])<br> shutil.rmtree('./{0}'.format(filename3))<br><br>if __name__ == '__main__':<br> main()<br></div>