<html><body bgcolor="#FFFFFF"><div>When you are saving the data, once you have chosen the filename a dialog should popup which allows you to check the "Write all Timesteps" checkbox. <br><br><div><br></div></div><div><br>On Jul 18, 2009, at 2:47 PM, Natalie Happenhofer <<a href="mailto:nataliehapp@hotmail.com">nataliehapp@hotmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>
Ok, checked it out and build it, but how do I tell ParaView that I want it to write the whole time series?<br><br>thx,<br>Natalie<br><br>> Date: Fri, 17 Jul 2009 13:44:39 -0400<br>> Subject: Re: [Paraview] memory leak in writer<br>> From: <a href="mailto:utkarsh.ayachit@kitware.com"><a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a></a><br>> To: <a href="mailto:nataliehapp@hotmail.com"><a href="mailto:nataliehapp@hotmail.com">nataliehapp@hotmail.com</a></a><br>> CC: <a href="mailto:paraview@paraview.org"><a href="mailto:paraview@paraview.org">paraview@paraview.org</a></a><br>> <br>> Try the following:<br>> <br>> cvs -d :pserver:anoncvs@www.paraview.org:/cvsroot/ParaView3 co -r<br>> ParaView-3-6-1 ParaView3<br>> <br>> <br>> <br>> <br>> On Fri, Jul 17, 2009 at 1:41 PM, Natalie<br>> Happenhofer<<a href="mailto:nataliehapp@hotmail.com">nataliehapp@hotmail.com</a>> wrote:<br>> > ok, I tried cvs -d :pserver:anoncvs@www.paraview.org:/cvsroot/ParaView-3-6-1<br>> > , but it says there is no such repository.<br>> ><br>> > N<br>> ><br>> >> Date: Fri, 17 Jul 2009 13:34:34 -0400<br>> >> Subject: Re: [Paraview] memory leak in writer<br>> >> From: <a href="mailto:utkarsh.ayachit@kitware.com"><a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a></a><br>> >> To: <a href="mailto:nataliehapp@hotmail.com"><a href="mailto:nataliehapp@hotmail.com">nataliehapp@hotmail.com</a></a><br>> >><br>> >> You can check out the CVS tag: ParaView-3-6 for the 3.6 branch or<br>> >> ParaView-3-6-1 for the release tag.<br>> >><br>> >> Utkarsh<br>> >><br>> >> On Fri, Jul 17, 2009 at 1:31 PM, Natalie<br>> >> Happenhofer<<a href="mailto:nataliehapp@hotmail.com">nataliehapp@hotmail.com</a>> wrote:<br>> >> > But the source code is also not available yet, is it?<br>> >> ><br>> >> > Natalie<br>> >> ><br>> >> >> Date: Fri, 17 Jul 2009 13:22:20 -0400<br>> >> >> Subject: Re: [Paraview] memory leak in writer<br>> >> >> From: <a href="mailto:utkarsh.ayachit@kitware.com"><a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a></a><br>> >> >> To: <a href="mailto:nataliehapp@hotmail.com"><a href="mailto:nataliehapp@hotmail.com">nataliehapp@hotmail.com</a></a><br>> >> >> CC: <a href="mailto:paraview@paraview.org"><a href="mailto:paraview@paraview.org">paraview@paraview.org</a></a><br>> >> >><br>> >> >> You can't download 3.6 binaries yet. We should have them posted by<br>> >> >> early next week.<br>> >> >><br>> >> >> Utkarsh<br>> >> >><br>> >> >> On Fri, Jul 17, 2009 at 1:13 PM, Natalie<br>> >> >> Happenhofer<<a href="mailto:nataliehapp@hotmail.com">nataliehapp@hotmail.com</a>> wrote:<br>> >> >> > I have written it months ago and it worked well for small files and<br>> >> >> > timeseries for about 30 files - I have just come across it trying to<br>> >> >> > write a<br>> >> >> > time series of 200 files.<br>> >> >> ><br>> >> >> > I can already download ParaView 3.6? Great, I did not know this!<br>> >> >> ><br>> >> >> > thx,<br>> >> >> > Natalie<br>> >> >> ><br>> >> >> >> Date: Fri, 17 Jul 2009 08:47:37 -0400<br>> >> >> >> Subject: Re: [Paraview] memory leak in writer<br>> >> >> >> From: <a href="mailto:utkarsh.ayachit@kitware.com"><a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a></a><br>> >> >> >> To: <a href="mailto:nataliehapp@hotmail.com"><a href="mailto:nataliehapp@hotmail.com">nataliehapp@hotmail.com</a></a><br>> >> >> >> CC: <a href="mailto:paraview@paraview.org"><a href="mailto:paraview@paraview.org">paraview@paraview.org</a></a><br>> >> >> >><br>> >> >> >> Out of curiosity, why are you writing your own wrapper? ParaView 3.6<br>> >> >> >> onwards supports writing time series for legacy vtk files.<br>> >> >> >><br>> >> >> >> Utkarsh<br>> >> >> >><br>> >> >> >> On Fri, Jul 17, 2009 at 7:53 AM, Natalie<br>> >> >> >> Happenhofer<<a href="mailto:nataliehapp@hotmail.com">nataliehapp@hotmail.com</a>> wrote:<br>> >> >> >> > Hi!<br>> >> >> >> > I´ve written a Wrapper for the Legacy VTK files writer, so that it<br>> >> >> >> > writes a<br>> >> >> >> > whole timeseries if I want it to. Lamentably, applying it, it<br>> >> >> >> > needs<br>> >> >> >> > more<br>> >> >> >> > and<br>> >> >> >> > more memory, so I am looking for a memory leak.<br>> >> >> >> ><br>> >> >> >> > Here is the bit of code I suspect:<br>> >> >> >> ><br>> >> >> >> > vtkInformation* inInfo = inputVector[0]->GetInformationObject(0);<br>> >> >> >> > vtkDataObject* input =<br>> >> >> >> > inInfo->Get(vtkDataObject::DATA_OBJECT());<br>> >> >> >> ><br>> >> >> >> > vtkSmartPointer<vtkDataObject> inputCopy;<br>> >> >> >> > inputCopy.TakeReference(input->NewInstance());<br>> >> >> >> > inputCopy->ShallowCopy(input);<br>> >> >> >> ><br>> >> >> >> > vtksys_ios::ostringstream fname;<br>> >> >> >> > if (this->WriteAllTimeSteps)<br>> >> >> >> > {<br>> >> >> >> > vtkstd::string path =<br>> >> >> >> > vtksys::SystemTools::GetFilenamePath(this->FileName);<br>> >> >> >> > vtkstd::string fnamenoext =<br>> >> >> >> ><br>> >> >> >> ><br>> >> >> >> > vtksys::SystemTools::GetFilenameWithoutLastExtension(this->FileName);<br>> >> >> >> > vtkstd::string ext =<br>> >> >> >> ><br>> >> >> >> > vtksys::SystemTools::GetFilenameLastExtension(this->FileName);<br>> >> >> >> > if((this -> CurrentTimeIndex) < 10) fname << path << "/" <<<br>> >> >> >> > fnamenoext<br>> >> >> >> > << ".000" <<this->CurrentTimeIndex << ext;<br>> >> >> >> > else if((this -> CurrentTimeIndex) < 100) fname << path << "/"<br>> >> >> >> > <<<br>> >> >> >> > fnamenoext << ".00" << this -> CurrentTimeIndex << ext;<br>> >> >> >> > else if((this -> CurrentTimeIndex) < 1000) fname << path <<<br>> >> >> >> > "/"<br>> >> >> >> > <<<br>> >> >> >> > fnamenoext << ".0" << this -> CurrentTimeIndex << ext;<br>> >> >> >> > else fname << path << "/" << fnamenoext << this -><br>> >> >> >> > CurrentTimeIndex<br>> >> >> >> > <<<br>> >> >> >> > ext;<br>> >> >> >> > }<br>> >> >> >> > else<br>> >> >> >> > {<br>> >> >> >> > fname << this->FileName;<br>> >> >> >> > }<br>> >> >> >> ><br>> >> >> >> > //Here I call the usual VTK Writer and set the input<br>> >> >> >> ><br>> >> >> >> > vtkGenericDataObjectWriter* Writer =<br>> >> >> >> > vtkGenericDataObjectWriter::New();<br>> >> >> >> > Writer -> SetInput(inputCopy);<br>> >> >> >> > Writer -> SetFileName(fname.str().c_str());<br>> >> >> >> > if((this -> FileType) == 1) Writer -> SetFileTypeToASCII();<br>> >> >> >> > else Writer -> SetFileTypeToBinary();<br>> >> >> >> ><br>> >> >> >> > Writer -> Update();<br>> >> >> >> ><br>> >> >> >> > if (this->WriteAllTimeSteps)<br>> >> >> >> > {<br>> >> >> >> > this->CurrentTimeIndex++;<br>> >> >> >> > if (this->CurrentTimeIndex == this->NumberOfTimeSteps)<br>> >> >> >> > {<br>> >> >> >> > // Tell the pipeline to stop looping.<br>> >> >> >> ><br>> >> >> >> ><br>> >> >> >> ><br>> >> >> >> > request->Remove(vtkStreamingDemandDrivenPipeline::CONTINUE_EXECUTING());<br>> >> >> >> > this->CurrentTimeIndex = 0;<br>> >> >> >> > }<br>> >> >> >> > }<br>> >> >> >> ><br>> >> >> >> > Writer -> Delete();<br>> >> >> >> > return 1;<br>> >> >> >> ><br>> >> >> >> > Is there anything I forget to delete?<br>> >> >> >> ><br>> >> >> >> ><br>> >> >> >> > thx for answers<br>> >> >> >> > Natalie<br>> >> >> >> ><br>> >> >> >> ><br>> >> >> >> ><br>> >> >> >> > ________________________________<br>> >> >> >> > Nuevo Internet Explorer 8 ¡Es Gratis y optimizado para MSN!<br>> >> >> >> > _______________________________________________<br>> >> >> >> > Powered by <a href="http://www.kitware.com"><a href="http://www.kitware.com">www.kitware.com</a></a><br>> >> >> >> ><br>> >> >> >> > Visit other Kitware open-source projects at<br>> >> >> >> > <a href="http://www.kitware.com/opensource/opensource.html"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></a><br>> >> >> >> ><br>> >> >> >> > Please keep messages on-topic and check the ParaView Wiki at:<br>> >> >> >> > <a href="http://paraview.org/Wiki/ParaView"><a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a></a><br>> >> >> >> ><br>> >> >> >> > Follow this link to subscribe/unsubscribe:<br>> >> >> >> > <a href="http://www.paraview.org/mailman/listinfo/paraview"><a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a></a><br>> >> >> >> ><br>> >> >> >> ><br>> >> >> ><br>> >> >> > ________________________________<br>> >> >> > ¿Quieres conocerte mejor? ¡Conoce lo que Windows Live tiene<br>> >> >> > especialmente<br>> >> >> > para ti!<br>> >> >> > _______________________________________________<br>> >> >> > Powered by <a href="http://www.kitware.com"><a href="http://www.kitware.com">www.kitware.com</a></a><br>> >> >> ><br>> >> >> > Visit other Kitware open-source projects at<br>> >> >> > <a href="http://www.kitware.com/opensource/opensource.html"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></a><br>> >> >> ><br>> >> >> > Please keep messages on-topic and check the ParaView Wiki at:<br>> >> >> > <a href="http://paraview.org/Wiki/ParaView"><a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a></a><br>> >> >> ><br>> >> >> > Follow this link to subscribe/unsubscribe:<br>> >> >> > <a href="http://www.paraview.org/mailman/listinfo/paraview"><a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a></a><br>> >> >> ><br>> >> >> ><br>> >> ><br>> >> > ________________________________<br>> >> > ¿Quieres conocerte mejor? ¡Conoce lo que Windows Live tiene<br>> >> > especialmente<br>> >> > para ti!<br>> ><br>> > ________________________________<br>> > ¿Cuál de estas 16 personalidades es la tuya? ¡Descubre quién eres realmente!<br>> > _______________________________________________<br>> > Powered by <a href="http://www.kitware.com"><a href="http://www.kitware.com">www.kitware.com</a></a><br>> ><br>> > Visit other Kitware open-source projects at<br>> > <a href="http://www.kitware.com/opensource/opensource.html"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></a><br>> ><br>> > Please keep messages on-topic and check the ParaView Wiki at:<br>> > <a href="http://paraview.org/Wiki/ParaView"><a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a></a><br>> ><br>> > Follow this link to subscribe/unsubscribe:<br>> > <a href="http://www.paraview.org/mailman/listinfo/paraview"><a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a></a><br>> ><br>> ><br><br><hr>¿Cuál de estas 16 personalidades es la tuya? <a href="http://www.descubrewindowslive.com/" target="_new">¡Descubre quién eres realmente!</a>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Powered by <a href="http://www.kitware.com"><a href="http://www.kitware.com">www.kitware.com</a></a></span><br><span></span><br><span>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></a></span><br><span></span><br><span>Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView"><a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a></a></span><br><span></span><br><span>Follow this link to subscribe/unsubscribe:</span><br><span><a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a></span><br></div></blockquote></body></html>