<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Now that I can load image (uniform
rectilinear grid) data using the Python Programmable Source, I'm
trying to do this on four gpu nodes (using mpirun -np 4 pvserver).
Once I load my image, I thought it would be automatically
distributed (equally) to the four nodes, but coloring by process
id shows that everything happens on one node. What do I need to do
(short of writing out four pvti files and reading them back in) to
automatically distribute my data?<br>
<br>
Thanks.<br>
<br>
-jeff<br>
<br>
On 07/21/2015 09:14 AM, Jeff Becker wrote:<br>
</div>
<blockquote cite="mid:55AE6FCE.2010407@nasa.gov" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div class="moz-cite-prefix">On 07/20/2015 05:43 PM, Berk Geveci
wrote:<br>
</div>
<blockquote
cite="mid:CAE32kpW9LoazpP6Xu_3WUmVMqE8FoA0kiw5TRAXrwwms0OBOQg@mail.gmail.com"
type="cite">
<div dir="ltr">You probably need to update vtkImageExport and
shallow copy its output to the programmable source's output.
You also need to add something to the RequestInformation
setting the whole extent. You need something like:
<div><br>
</div>
<div>
<div>from paraview import util</div>
<div> </div>
<div>util.SetOutputWholeExtent(self, [0,nx-1,0,ny-1,0,nz-1])<br>
</div>
</div>
<div><br>
</div>
<div>By the way, there are better ways of getting numpy arrays
into VTK than the image import stuff. See some of the
earlier blogs here:</div>
</div>
</blockquote>
<br>
Right. I found the RequestInformation info above from searching
the web. Then I was able to follow the instructions in the
ParaView Guide section 13.2.4 Reading binary 2D image. I basically
replaced the image import stuff with code analogous to the output
assignment,<br>
<br>
Thanks for your help.<br>
<br>
</blockquote>
<br>
</body>
</html>