<div dir="ltr">Hi Greg,<div><br></div><div>I tracked down the problem. It is this line:</div><div><br></div><div>133 sgrid->SetDimensions(count[0], count[1], count[2]);</div><div><br></div><div>This is equivalent to</div><div><br></div><div>sgrid->SetExtent(0, count[0]-1, 0, count[1]-1, 0, count[2]-1);</div><div><br></div><div>which overwrites the earlier SetExtent() call.</div><div><br></div><div>If you get rid of it, it should work fine.</div><div><br></div><div>Best,</div><div>-berk</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 29, 2014 at 7:09 PM, Greg Abram <span dir="ltr"><<a href="mailto:gda@tacc.utexas.edu" target="_blank">gda@tacc.utexas.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Hey y'all -
<div><br>
<div>I'm trying to write a parallel reader for a user's structured grid and am having a problem with extents. I've included a plugin that demonstrates the problem - a little "importer" that hardwires a whole extent of 0,10 in each axis. In RequestInformation
it calls:</div>
<div><br>
</div>
<div>
<div> outInfo->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(),this->Internals->extent,6);</div>
<div> outInfo->Set(CAN_PRODUCE_SUB_EXTENT(), 1);</div>
<div><br>
</div>
<div>and in RequestData it calls </div>
<div><br>
</div>
<div>
<div> outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(),subext);</div>
</div>
<div> vtkStructuredGrid *sgrid = vtkStructuredGrid::SafeDownCast(output);</div>
<div> sgrid->SetExtent(subext);</div>
<div><br>
</div>
<div>to get the update extent from the pipeline and set it onto the structured grid.. It then stuffs points and data to create a grid from -1 to 1 in each axis. </div>
<div><br>
</div>
<div>When I run it on 2 processes, the result *looks* right, it fills the -1 to 1 space along each axis, there are the right number of cells and points, ProcessIdScalars shows two equal size partitions, but the extent is clearly not right - the wireframe and
surface surface boundaries are incomplete and the extent shown in the Information tab is correct for only one of the two parts.</div>
<div><br>
</div>
<div>So, what am I doing wrong?</div>
<div><br>
</div>
<div>If anyone is interested, I uploaded the plugin code to: <a href="https://utexas.box.com/s/d6ef5kx4oxm1d205hbbo" target="_blank">https://utexas.box.com/s/d6ef5kx4oxm1d205hbbo</a></div>
<div><br>
</div>
<div>
<div>
<div>Gregory D. Abram, Ph.D.</div>
<div>Research Engineering/Scientist Associate</div>
<div>Texas Advanced Computing Center</div>
<div>The University of Texas at Austin</div>
<div><a href="tel:%28512%29%20471-8196" value="+15124718196" target="_blank">(512) 471-8196</a></div>
<div><a href="mailto:gda@tacc.utexas.edu" target="_blank">gda@tacc.utexas.edu</a></div>
<div><br>
</div>
<div><a href="https://www.tacc.utexas.edu/" style="color:rgb(0,40,104);text-decoration:none;margin:0px auto" target="_blank"><img alt="TACC Website" src="http://www.tacc.utexas.edu/cdn/social/web.png" style="border:0px;color:transparent;display:block;margin:0px;padding:0px"></a></div>
<div><font color="rgba(0, 0, 0, 0)"><br>
</font><a href="https://www.tacc.utexas.edu/" style="color:rgb(0,40,104);text-decoration:none;margin:0px;font-weight:bold;padding:0px" target="_blank"><span style="display:block;font-size:14px;font-weight:bolder">Connect With TACC</span></a></div>
</div>
<div><br>
</div>
<br>
</div>
<br>
</div>
</div>
</div>
<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://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>