[Paraview] pvbatch and process id

Andy Bauer andy.bauer at kitware.com
Mon Feb 4 11:00:59 EST 2013


Hi Gena,

You'll need to run pvbatch with the --symmetric option. Otherwise process 0
is the only one that reads the script and tells all of the other processes
what to do.

Andy

On Mon, Feb 4, 2013 at 9:35 AM, Gena Bug <archaerolog at mail.ru> wrote:

> Hi!
>
> I'm trying to get a current process id from within a pvbatch script.
> I found a solution here
> (http://www.paraview.org/pipermail/paraview/2010-April/016759.html)
> but this trick doesn't work for me.
>
> I wrote a very simple script:
> from paraview.simple import *
> sm = servermanager
> print 'parts = ', sm.ActiveConnection.GetNumberOfDataPartitions()
> print 'my id = ', sm.vtkProcessModule.GetProcessModule().GetPartitionId()
>
> If I run it with custom compiled paraview (with MPI enabled) I get:
> $ mpirun -np 2 ~/projects/ParaView-build/bin/pvbatch tst_pvbatch.py
> parts =  2
> my id =  0
>
> If I run it with pvbatch downloaded from www.paraview.org I get:
> $ mpirun -np 2 ~/paraview/bin/pvbatch tst_pvbatch.py
> parts =  1
> my id = parts =  1
> my id =  0
>  0
>
> What am I doing wrong?
>
> -----|-
> Гена.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130204/c28d2fb2/attachment.htm>


More information about the ParaView mailing list