[Paraview] Run multiple processes at the same time

Tim De Coster tim91decoster at gmail.com
Fri Feb 26 08:54:33 EST 2016


Hi all,

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?

With kind regards,
Tim

Example script of what I have at the moment:

import subprocess
import numpy as np
import shutil

def main():

    for-loop generating filenames
           print 'We are at', filename3
           subprocess.call(['/usr/bin/pvpython', 'MakeMovie.py', '-f',
filename3])
           shutil.rmtree('./{0}'.format(filename3))

if __name__ == '__main__':
    main()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160226/532f1be4/attachment.html>


More information about the ParaView mailing list