Hi Rich,<br><br>The command line will be:<br><br>mpirun -np 1 /path/to/pvbatch /path/to/script.py<br><br><br>The pvbatch executable is similar to pvserver, except proc 0 doesn&#39;t wait for a client connection, it reads the python script specified on the command line and executes the script as if it were instructions from a client.  The script will be read and interpreted on proc 0, but the processing will be carried out by all the satellite procs, just like pvserver.<br>

<br>I&#39;d recommend starting with a script that is very simple, like:<br><br># testSphere.py<br><br>from paraview.simple import *<br><br>Sphere()<br>writer = XMLPPolyDataWriter(FileName=&#39;sphere.pvtp&#39;)<br>writer.UpdatePipeline()<br>

<br><br>Try getting that to work using -np 1, then try -np 2, you should find pieces of there sphere written by both processes.<br><br>Pat<br><br>p.s. If your data is unstructured grid, then your writer would be a XMLPUnstructuredGridWriter.  Also, I&#39;m not sure if the name should be &quot;XMLP...&quot; or &quot;XMLPartitioned...&quot;<br>

<br><br><div class="gmail_quote">On Wed, Feb 13, 2013 at 11:48 AM, Cook, Rich <span dir="ltr">&lt;<a href="mailto:cook47@llnl.gov" target="_blank">cook47@llnl.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello, ParaView genii,<br>
<br>
I would like to run ParaView to view some data in parallel using the following script from a user as a basis. Â I&#39;m not sure how to do this right. Â I&#39;ve never scripted Paraview before, and am thus clueless how to make it work. Â Can someone on this list tell me how Paraview scripting with MPI works or point me to a tutorial on your massive tutorial pages? Â The data is very large and it would be great to decompose the data across the cluster.<br>


<br>
Thanks!<br>
<br>
try: paraview.simple<br>
except: from paraview.simple import *<br>
paraview.simple._DisableFirstRenderCameraReset()<br>
<br>
filein = XMLPartitionedUnstructuredGridReader( FileName=[&#39;/p/lscratchd/bodart1/test_para/duct.020000.pvtu&#39;] )<br>
<br>
Slice1 = Slice( SliceType=&quot;Plane&quot; )<br>
<br>
Slice1.SliceOffsetValues = [0.0]<br>
Slice1.SliceType.Origin = [0.0,0.0,0.0]<br>
Slice1.SliceType.Normal = [0.0,0.0,1.0]<br>
Slice1.SliceType = &quot;Plane&quot;<br>
<br>
CleantoGrid1 = CleantoGrid()<br>
<br>
<br>
CellDatatoPointData1 = CellDatatoPointData()<br>
<br>
w.FileName=&quot;test_slice.vtu&quot;<br>
w.UpdatePipeline()<br>
<br>
<br>
--<br>
✐Richard Cook<br>
✇ Lawrence Livermore National Laboratory<br>
Bldg-453 Rm-4024, Mail Stop L-557<br>
7000 East Avenue, Â Livermore, CA, 94550, USA<br>
☎ (office) (925) 423-9605<br>
☎ (fax) (925) 423-6961<br>
---<br>
Information Management &amp; Graphics Grp., Services &amp; Development Div., Integrated Computing &amp; Communications Dept.<br>
(opinions expressed herein are mine and not those of LLNL)<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>