<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">All,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I currently have a python script that uses a programmable filter to pull values (scalars) from one block of a data set and add them to a different block: </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><p style="margin:0px"><span style="font-family:"Courier New,courier"">output </span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">=</span><span style="font-family:"Courier New,courier""> </span><span style="font-family:"Courier New,courier";color:rgb(0,128,0)">self</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">GetOutputDataObject(</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">0</span><span style="font-family:"Courier New,courier"">)</span></p>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier"">output</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">DeepCopy(grids)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;font-family:"Courier New,courier""><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier"">numofcells </span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">=</span><span style="font-family:"Courier New,courier""> grids</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">GetNumberOfCells()</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier"">Pinf </span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">=</span><span style="font-family:"Courier New,courier""> farfield</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">GetCellData()</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">GetArray(</span><span style="font-family:"Courier New,courier";color:rgb(186,33,33)">'Pinf'</span><span style="font-family:"Courier New,courier"">)</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">GetValue(</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">0</span><span style="font-family:"Courier New,courier"">)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier"">Minf </span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">=</span><span style="font-family:"Courier New,courier""> farfield</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">GetCellData()</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">GetArray(</span><span style="font-family:"Courier New,courier";color:rgb(186,33,33)">'Minf'</span><span style="font-family:"Courier New,courier"">)</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">GetValue(</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">0</span><span style="font-family:"Courier New,courier"">)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier"">Vinf </span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">=</span><span style="font-family:"Courier New,courier""> farfield</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">GetCellData()</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">GetArray(</span><span style="font-family:"Courier New,courier";color:rgb(186,33,33)">'Vinf'</span><span style="font-family:"Courier New,courier"">)</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">GetValue(</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">0</span><span style="font-family:"Courier New,courier"">)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;font-family:"Courier New,courier""><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier"">PinfArray </span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">=</span><span style="font-family:"Courier New,courier""> vtk</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">vtkDoubleArray()</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier"">PinfArray</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">SetName(</span><span style="font-family:"Courier New,courier";color:rgb(186,33,33)">'Pinf'</span><span style="font-family:"Courier New,courier"">)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier"">MinfArray </span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">=</span><span style="font-family:"Courier New,courier""> vtk</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">vtkDoubleArray()</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier"">MinfArray</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">SetName(</span><span style="font-family:"Courier New,courier";color:rgb(186,33,33)">'Minf'</span><span style="font-family:"Courier New,courier"">)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier"">VinfArray </span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">=</span><span style="font-family:"Courier New,courier""> vtk</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">vtkDoubleArray()</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier"">VinfArray</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">SetName(</span><span style="font-family:"Courier New,courier";color:rgb(186,33,33)">'Vinf'</span><span style="font-family:"Courier New,courier"">)\</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;font-family:"Courier New,courier""><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier";font-weight:600;color:rgb(0,128,0)">for</span><span style="font-family:"Courier New,courier""> i </span><span style="font-family:"Courier New,courier";font-weight:600;color:rgb(170,34,255)">in</span><span style="font-family:"Courier New,courier""> </span><span style="font-family:"Courier New,courier";color:rgb(0,128,0)">range</span><span style="font-family:"Courier New,courier"">(numofcells):</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier""> PinfArray</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">InsertNextValue(Pinf)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier""> MinfArray</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">InsertNextValue(Minf)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier""> VinfArray</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">InsertNextValue(Vinf)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;font-family:"Courier New,courier""><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier"">output</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">GetCellData()</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">AddArray(PinfArray)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:"Courier New,courier"">output</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">GetCellData()</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">AddArray(MinfArray)</span></pre>
<pre style="margin-top:0px;margin-bottom:12px"><span style="font-family:"Courier New,courier"">output</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">GetCellData()</span><span style="font-family:"Courier New,courier";color:rgb(102,102,102)">.</span><span style="font-family:"Courier New,courier"">AddArray(VinfArray)</span></pre></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I wrote the script using a small data set, employing only one processor. With much larger data sets the other parts of the script benefit from parallel execution, but my programmable filter is no longer working well. The programmable script appears to execute on each processor, and each processor is holding a portion of the data. The programmable filter output shows partial Pinf, Minf, and Vinf arrays. </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">So, I have two options. I can either add the necessary commands to this programmable filter script to allow it to correctly run across multiple processors, or I can possibly force all the data back onto one processor for this step, and run this programmable filter on only one node. </div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Which is easier, and how would I go about doing it?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Please note, both my Request Information and Request Update Extent scripts are currently blank, and both input data types are unstructured grids.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Any help will be much appreciated!</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Thanks,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Mike Tree</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font face="garamond, serif" size="2">Mike Tree, PhD</font><div><font face="garamond, serif" size="2">Cardiovascular Fluid Mechanics Laboratory<br></font></div><div><font face="garamond, serif" size="2">Georgia Institute of Technology</font></div><div><font face="garamond, serif" size="2">Atlanta, GA</font></div><div><a href="mailto:treem22@gatech.edu" target="_blank"><font color="#000000" face="garamond, serif" size="2">treem22@gatech.edu</font></a></div><div><font face="garamond, serif" size="2">678-249-0922</font></div></div></div></div></div></div></div></div></div>
</div>