<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
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">https://utexas.box.com/s/d6ef5kx4oxm1d205hbbo</a></div>
<div><br>
</div>
<div apple-content-edited="true">
<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>(512) 471-8196</div>
<div><a href="mailto:gda@tacc.utexas.edu">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; "><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; "><span style="display: block; font-size: 14px; font-weight: bolder; ">Connect With TACC</span></a></div>
</div>
<div><br>
</div>
<br class="Apple-interchange-newline">
</div>
<br>
</div>
</div>
</body>
</html>