Hi Gena,<br><br>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.<br><br>Andy<br><br><div class="gmail_quote">
On Mon, Feb 4, 2013 at 9:35 AM, Gena Bug <span dir="ltr"><<a href="mailto:archaerolog@mail.ru" target="_blank">archaerolog@mail.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi!<br>
<br>
I'm trying to get a current process id from within a pvbatch script.<br>
I found a solution here<br>
(<a href="http://www.paraview.org/pipermail/paraview/2010-April/016759.html" target="_blank">http://www.paraview.org/pipermail/paraview/2010-April/016759.html</a>)<br>
but this trick doesn't work for me.<br>
<br>
I wrote a very simple script:<br>
from paraview.simple import *<br>
sm = servermanager<br>
print 'parts = ', sm.ActiveConnection.GetNumberOfDataPartitions()<br>
print 'my id = ', sm.vtkProcessModule.GetProcessModule().GetPartitionId()<br>
<br>
If I run it with custom compiled paraview (with MPI enabled) I get:<br>
$ mpirun -np 2 ~/projects/ParaView-build/bin/pvbatch tst_pvbatch.py<br>
parts = š2<br>
my id = š0<br>
<br>
If I run it with pvbatch downloaded from <a href="http://www.paraview.org" target="_blank">www.paraview.org</a> I get:<br>
$ mpirun -np 2 ~/paraview/bin/pvbatch tst_pvbatch.py<br>
parts = š1<br>
my id = parts = š1<br>
my id = š0<br>
š0<br>
<br>
What am I doing wrong?<br>
<br>
-----|-<br>
çÅÎÁ.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br>