<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16447"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=577372903-30072012>A follow up...</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=577372903-30072012></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=577372903-30072012>To build I changed the linking options 
to:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=577372903-30072012>-lvtkCommonCore-6.0 -lvtkCommonDataModel-6.0 
-lvtkIOCore-6.0 -lvtkIOXML-6.0 -lvtkRenderingCore-6.0</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 
face=Arial></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=577372903-30072012><FONT color=#0000ff 
size=2 face=Arial>And the code to:</FONT></SPAN></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial>&nbsp; 
//writer-&gt;SetInputConnection(grid-&gt;GetProducerPort());<BR>&nbsp; 
writer-&gt;SetHeaderTypeToUInt64();<BR>&nbsp; 
writer-&gt;SetInputData(grid);</FONT></DIV><FONT color=#0000ff size=2 
face=Arial></FONT>
<DIV><BR><SPAN class=577372903-30072012><FONT color=#0000ff size=2 face=Arial>I 
can now write a large vtr file using VTK6&nbsp;and have ParaView 
3.14.1-1300-g0596919 read the file with no errors. However as the data gets 
larger ParaView is more unstable. I found that I had to start using ParaView in 
parallel to prevent seg faults. </FONT></SPAN></DIV>
<DIV><SPAN class=577372903-30072012><FONT color=#0000ff size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=577372903-30072012><FONT color=#0000ff size=2 face=Arial>So it 
is working thanks :)</FONT></SPAN></DIV>
<DIV><SPAN class=577372903-30072012><FONT color=#0000ff size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=577372903-30072012><FONT color=#0000ff size=2 
face=Arial>Paul</FONT></SPAN></DIV>
<DIV><SPAN class=577372903-30072012><FONT color=#0000ff size=2 
face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> paraview-bounces@paraview.org 
[mailto:paraview-bounces@paraview.org] <B>On Behalf Of </B>Paul 
McIntosh<BR><B>Sent:</B> Sunday, 29 July 2012 10:12 AM<BR><B>To:</B> 'Andy 
Bauer'<BR><B>Cc:</B> paraview@paraview.org<BR><B>Subject:</B> Re: [Paraview] 
Large vtr files not read - The data array in theelement may be too 
short<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=081171000-29072012><FONT color=#0000ff 
size=2 face=Arial>Hi Andy,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=081171000-29072012><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=081171000-29072012><FONT color=#0000ff 
size=2 face=Arial>Thanks - I am just trying to get my build working with the new 
VTK 6 library system and if it works I'll post the updated 
code.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=081171000-29072012><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=081171000-29072012><FONT color=#0000ff 
size=2 face=Arial>Cheers,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=081171000-29072012><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=081171000-29072012><FONT color=#0000ff 
size=2 face=Arial>Paul</FONT></SPAN></DIV><BR>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> Andy Bauer [mailto:andy.bauer@kitware.com] 
<BR><B>Sent:</B> Thursday, 26 July 2012 12:35 AM<BR><B>To:</B> Paul 
McIntosh<BR><B>Cc:</B> paraview@paraview.org<BR><B>Subject:</B> Re: [Paraview] 
Large vtr files not read - The data array in the element may be too 
short<BR></FONT><BR></DIV>
<DIV></DIV>Hi,<BR><BR>If you're using VTK master to create your VTR files you 
can use the SetHeaderTypeToUInt64() method to write out these large data sets. 
ParaView master will be able to read them in properly. Unfortunately though this 
has been fixed since the 3.14.1 release so it won't work there. We're working on 
fixing this limitation properly for the next ParaView 
release.<BR><BR>Andy<BR><BR>
<DIV class=gmail_quote>On Wed, Jul 25, 2012 at 3:47 AM, Paul McIntosh <SPAN 
dir=ltr>&lt;<A href="mailto:paul.mcintosh@internetscooter.com" 
target=_blank>paul.mcintosh@internetscooter.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE 
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
class=gmail_quote>Hi All,<BR><BR>How does one go about writing large 
  rectilinear data files (vtr) that are<BR>suitable for reading by 
  ParaView?<BR><BR>I have been trying using VTK and found that there is a size 
  limit(?).<BR>Googling showed that there was a bug in 2005 that should have 
  been fixed but<BR>I am still getting an error when I go above a certain size 
  (even with 3.14<BR>64bit precompiled). I have adapted a VTK example and 
  reproduced the problem<BR>- below is the error message followed by the code. 
  "size = 1000" works,<BR>"size = 1200" produced the error message, "size = 
  2000" ParaView just<BR>segfaults.<BR><BR>Do I have to change it to use 
  parallel writers?<BR><BR>Cheers,<BR><BR>Paul<BR>---<BR><A 
  href="http://www.internetscooter.com" 
  target=_blank>www.internetscooter.com</A><BR><BR>ERROR: 
  In<BR>/usr/local/src/PARAVIEW/3.14.0/ParaView-3.14.0-Source/VTK/IO/vtkXMLStructure<BR>dDataReader.cxx, 
  line 325<BR>vtkXMLRectilinearGridReader (0x1b2b54b0): Error reading extent 0 
  1199 0 1199<BR>0 1199 from piece 0<BR><BR><BR>ERROR: 
  In<BR>/usr/local/src/PARAVIEW/3.14.0/ParaView-3.14.0-Source/VTK/IO/vtkXMLDataReade<BR>r.cxx, 
  line 510<BR>vtkXMLRectilinearGridReader (0x1b2b54b0): Cannot read point data 
  array "Da"<BR>from PointData in piece 0. &nbsp;The data array in the element 
  may be too short.<BR><BR><BR>ERROR: 
  In<BR>/usr/local/src/PARAVIEW/3.14.0/ParaView-3.14.0-Source/VTK/IO/vtkXMLStructure<BR>dDataReader.cxx, 
  line 325<BR>vtkXMLRectilinearGridReader (0x1b2b54b0): Error reading extent 0 
  1199 0 1199<BR>0 1199 from piece 0<BR><BR><BR>ERROR: 
  In<BR>/usr/local/src/PARAVIEW/3.14.0/ParaView-3.14.0-Source/VTK/IO/vtkXMLDataReade<BR>r.cxx, 
  line 510<BR>vtkXMLRectilinearGridReader (0x1b2b54b0): Cannot read point data 
  array "Da"<BR>from PointData in piece 0. &nbsp;The data array in the element 
  may be too short.<BR><BR><BR>ERROR: 
  In<BR>/usr/local/src/PARAVIEW/3.14.0/ParaView-3.14.0-Source/VTK/IO/vtkXMLStructure<BR>dDataReader.cxx, 
  line 325<BR>vtkXMLRectilinearGridReader (0x1b2b54b0): Error reading extent 0 
  1199 0 1199<BR>0 1199 from piece 0<BR><BR><BR>ERROR: 
  In<BR>/usr/local/src/PARAVIEW/3.14.0/ParaView-3.14.0-Source/VTK/IO/vtkXMLDataReade<BR>r.cxx, 
  line 510<BR>vtkXMLRectilinearGridReader (0x1b2b54b0): Cannot read point data 
  array "Da"<BR>from PointData in piece 0. &nbsp;The data array in the element 
  may be too short.<BR><BR><BR>ERROR: 
  In<BR>/usr/local/src/PARAVIEW/3.14.0/ParaView-3.14.0-Source/VTK/IO/vtkXMLStructure<BR>dDataReader.cxx, 
  line 325<BR>vtkXMLRectilinearGridReader (0x1b2b54b0): Error reading extent 0 
  1199 0 1199<BR>0 1199 from piece 0<BR><BR><BR>ERROR: 
  In<BR>/usr/local/src/PARAVIEW/3.14.0/ParaView-3.14.0-Source/VTK/IO/vtkXMLDataReade<BR>r.cxx, 
  line 510<BR>vtkXMLRectilinearGridReader (0x1b2b54b0): Cannot read point data 
  array "Da"<BR>from PointData in piece 0. &nbsp;The data array in the element 
  may be too short.<BR><BR>// Qt (used for other code - not relevant 
  here)<BR>#include &lt;QCoreApplication&gt;<BR>#include 
  &lt;QtEndian&gt;<BR>#include &lt;QDebug&gt;<BR>#include 
  &lt;QStringList&gt;<BR><BR>// C++<BR>#include &lt;list&gt;<BR>#include 
  &lt;iostream&gt;<BR>#include &lt;fstream&gt;<BR>using namespace std;<BR><BR>// 
  VTK<BR>#include &lt;vtkVersion.h&gt;<BR>#include 
  &lt;vtkSmartPointer.h&gt;<BR>#include &lt;vtkDoubleArray.h&gt;<BR>#include 
  &lt;vtkFloatArray.h&gt;<BR>#include &lt;vtkPointData.h&gt;<BR>#include 
  &lt;vtkCellData.h&gt;<BR>#include &lt;vtkStructuredGrid.h&gt;<BR>#include 
  &lt;vtkRectilinearGrid.h&gt;<BR>#include 
  &lt;vtkXMLRectilinearGridWriter.h&gt;<BR>#include 
  &lt;vtkDataSetMapper.h&gt;<BR>#include 
  &lt;vtkXMLStructuredGridWriter.h&gt;<BR>#include 
  &lt;vtkXMLRectilinearGridReader.h&gt;<BR>#include 
  &lt;vtkSmartPointer.h&gt;<BR>#include &lt;vtkProperty.h&gt;<BR>#include 
  &lt;vtkDataSetMapper.h&gt;<BR>#include 
  &lt;vtkXMLRectilinearGridReader.h&gt;<BR>#include 
  &lt;vtkRectilinearGridGeometryFilter.h&gt;<BR>#include 
  &lt;vtkRenderWindow.h&gt;<BR>#include 
  &lt;vtkRenderWindowInteractor.h&gt;<BR>#include 
  &lt;vtkRenderer.h&gt;<BR><BR>#include &lt;vtkDataSetMapper.h&gt;<BR>#include 
  &lt;vtkActor.h&gt;<BR>#include &lt;vtkRenderWindow.h&gt;<BR>#include 
  &lt;vtkRenderer.h&gt;<BR>#include 
  &lt;vtkRenderWindowInteractor.h&gt;<BR><BR><BR>int main(int, char 
  *[])<BR>{<BR>&nbsp; long int size = 1200;<BR>&nbsp; // Create a grid<BR>&nbsp; 
  vtkSmartPointer&lt;vtkRectilinearGrid&gt; grid 
  =<BR>vtkSmartPointer&lt;vtkRectilinearGrid&gt;::New();<BR><BR>&nbsp; 
  grid-&gt;SetDimensions(size,size,size);<BR><BR>&nbsp; 
  vtkSmartPointer&lt;vtkDoubleArray&gt; xArray 
  =<BR>vtkSmartPointer&lt;vtkDoubleArray&gt;::New();<BR>&nbsp; 
  xArray-&gt;SetNumberOfComponents(1);<BR>&nbsp; 
  vtkSmartPointer&lt;vtkDoubleArray&gt; yArray 
  =<BR>vtkSmartPointer&lt;vtkDoubleArray&gt;::New();<BR>&nbsp; 
  yArray-&gt;SetNumberOfComponents(1);<BR>&nbsp; 
  vtkSmartPointer&lt;vtkDoubleArray&gt; zArray 
  =<BR>vtkSmartPointer&lt;vtkDoubleArray&gt;::New();<BR>&nbsp; 
  zArray-&gt;SetNumberOfComponents(1);<BR><BR>&nbsp; // Container for 
  data<BR>&nbsp; vtkSmartPointer&lt;vtkFloatArray&gt; DaArray 
  =<BR>vtkSmartPointer&lt;vtkFloatArray&gt;::New();<BR>&nbsp; 
  DaArray-&gt;SetNumberOfComponents(1);<BR>&nbsp; 
  DaArray-&gt;SetName("Da");<BR><BR>&nbsp; for (long int i = 0; i &lt; size; 
  i++)<BR>&nbsp; {<BR>&nbsp; &nbsp; &nbsp; 
  xArray-&gt;InsertNextValue(i);<BR>&nbsp; &nbsp; &nbsp; 
  yArray-&gt;InsertNextValue(i);<BR>&nbsp; &nbsp; &nbsp; 
  zArray-&gt;InsertNextValue(i);<BR>&nbsp; }<BR><BR>&nbsp; 
  grid-&gt;SetXCoordinates(xArray);<BR>&nbsp; 
  grid-&gt;SetYCoordinates(yArray);<BR>&nbsp; 
  grid-&gt;SetZCoordinates(zArray);<BR><BR>&nbsp; for (long int i = 0; i &lt; 
  size*size*size; i++)<BR>&nbsp; {<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
  DaArray-&gt;InsertNextValue(i);<BR>&nbsp; }<BR>&nbsp; 
  grid-&gt;GetPointData()-&gt;SetScalars(DaArray);<BR><BR>&nbsp; std::cout 
  &lt;&lt; "There are " &lt;&lt; grid-&gt;GetNumberOfPoints()<BR>&nbsp; &nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; " points." &lt;&lt; std::endl;<BR>&nbsp; 
  std::cout &lt;&lt; "There are " &lt;&lt; grid-&gt;GetNumberOfCells()<BR>&nbsp; 
  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;&lt; " cells." &lt;&lt; 
  std::endl;<BR><BR>&nbsp; vtkSmartPointer&lt;vtkXMLRectilinearGridWriter&gt; 
  writer 
  =<BR>vtkSmartPointer&lt;vtkXMLRectilinearGridWriter&gt;::New();<BR>&nbsp; 
  //writer-&gt;SetFileName("rectilineargrid.vtr");<BR>&nbsp; 
  writer-&gt;SetFileName("test.vtr");<BR>&nbsp; 
  writer-&gt;SetInputConnection(grid-&gt;GetProducerPort());<BR>&nbsp; cout 
  &lt;&lt; "Writing " &lt;&lt; "test.vtr" &lt;&lt; "..." &lt;&lt; 
  endl;<BR>&nbsp; writer-&gt;Write();<BR>&nbsp; cout &lt;&lt; "Wrote!" &lt;&lt; 
  endl;<BR><BR>&nbsp; // Create a mapper and actor<BR>&nbsp; 
  vtkSmartPointer&lt;vtkDataSetMapper&gt; mapper 
  =<BR>vtkSmartPointer&lt;vtkDataSetMapper&gt;::New();<BR>&nbsp; 
  mapper-&gt;SetInputConnection(grid-&gt;GetProducerPort());<BR><BR>&nbsp; 
  vtkSmartPointer&lt;vtkActor&gt; actor = 
  vtkSmartPointer&lt;vtkActor&gt;::New();<BR>&nbsp; 
  actor-&gt;SetMapper(mapper);<BR><BR>&nbsp; // Visualize<BR>&nbsp; 
  vtkSmartPointer&lt;vtkRenderer&gt; renderer 
  =<BR>vtkSmartPointer&lt;vtkRenderer&gt;::New();<BR>&nbsp; 
  vtkSmartPointer&lt;vtkRenderWindow&gt; renderWindow 
  =<BR>vtkSmartPointer&lt;vtkRenderWindow&gt;::New();<BR>&nbsp; 
  renderWindow-&gt;AddRenderer(renderer);<BR>&nbsp; 
  vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; renderWindowInteractor 
  =<BR>vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<BR>&nbsp; 
  renderWindowInteractor-&gt;SetRenderWindow(renderWindow);<BR><BR>&nbsp; 
  renderer-&gt;AddActor(actor);<BR>&nbsp; renderer-&gt;SetBackground(.3, .6, 
  .3); // Background color green<BR><BR>&nbsp; 
  renderWindow-&gt;Render();<BR>&nbsp; 
  renderWindowInteractor-&gt;Start();<BR><BR>&nbsp; return 
  EXIT_SUCCESS;<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></BODY></HTML>