<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Or better: Which module should I check out? ParaQ, Para.old, ParaQ2, ParaQData, ParaViewData, ParaViewWeb? <br><br>thx,<br>N<br><br>> Date: Mon, 20 Jul 2009 08:42:20 -0400<br>> Subject: Re: [Paraview] memory leak in writer<br>> From: utkarsh.ayachit@kitware.com<br>> To: nataliehapp@hotmail.com<br>> CC: paraview@paraview.org<br>> <br>> I should have verified before I replied, the feature didn't make it<br>> into 3.6. However, with CVS ParaView, you can write legacy vtk or<br>> vtk-xml files are time-series by checking the "Write all timesteps as<br>> file-series" checkbox shown after you have selected the filename (and<br>> this time, I verified :) )<br>> <br>> Utkarsh<br>> <br>> On Sun, Jul 19, 2009 at 9:20 AM, Utkarsh<br>> Ayachit<utkarsh.ayachit@kitware.com> wrote:<br>> > Hmm..let me check that out. Maybe I am mistaken and it's only<br>> > available in CVS. I remember working on it when we are working on the<br>> > 3.6 release can't remember if it made it into 3.6. I'll check it out<br>> > once I am at work tomorrow.<br>> ><br>> > Utkarsh<br>> ><br>> > On Sat, Jul 18, 2009 at 3:10 PM, Natalie<br>> > Happenhofer<nataliehapp@hotmail.com> wrote:<br>> >> This option is not available for the legacy vtk files writer - and neither<br>> >> for the xdmf data writer .. I just found it when I tried to write Exodus<br>> >> files.<br>> >><br>> >> Natalie<br>> >><br>> >> ________________________________<br>> >> From: utkarsh.ayachit@kitware.com<br>> >> To: nataliehapp@hotmail.com<br>> >> Subject: Re: [Paraview] memory leak in writer<br>> >> Date: Sat, 18 Jul 2009 14:51:20 -0400<br>> >> CC: paraview@paraview.org<br>> >><br>> >> When you are saving the data, once you have chosen the filename a dialog<br>> >> should popup which allows you to check the "Write all Timesteps" checkbox.<br>> >><br>> >><br>> >><br>> >> On Jul 18, 2009, at 2:47 PM, Natalie Happenhofer <nataliehapp@hotmail.com><br>> >> wrote:<br>> >><br>> >> Ok, checked it out and build it, but how do I tell ParaView that I want it<br>> >> 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: utkarsh.ayachit@kitware.com<br>> >>> To: nataliehapp@hotmail.com<br>> >>> CC: paraview@paraview.org<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<nataliehapp@hotmail.com> wrote:<br>> >>> > ok, I tried cvs -d<br>> >>> > :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: utkarsh.ayachit@kitware.com<br>> >>> >> To: nataliehapp@hotmail.com<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<nataliehapp@hotmail.com> 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: utkarsh.ayachit@kitware.com<br>> >>> >> >> To: nataliehapp@hotmail.com<br>> >>> >> >> CC: paraview@paraview.org<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<nataliehapp@hotmail.com> wrote:<br>> >>> >> >> > I have written it months ago and it worked well for small files<br>> >>> >> >> > and<br>> >>> >> >> > timeseries for about 30 files - I have just come across it trying<br>> >>> >> >> > 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: utkarsh.ayachit@kitware.com<br>> >>> >> >> >> To: nataliehapp@hotmail.com<br>> >>> >> >> >> CC: paraview@paraview.org<br>> >>> >> >> >><br>> >>> >> >> >> Out of curiosity, why are you writing your own wrapper? ParaView<br>> >>> >> >> >> 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<nataliehapp@hotmail.com> wrote:<br>> >>> >> >> >> > Hi!<br>> >>> >> >> >> > I´ve written a Wrapper for the Legacy VTK files writer, so that<br>> >>> >> >> >> > 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 =<br>> >>> >> >> >> > 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>> >>> >> >> >> ><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>> >>> >> >> >> > <<<br>> >>> >> >> >> > fnamenoext<br>> >>> >> >> >> > << ".000" <<this->CurrentTimeIndex << ext;<br>> >>> >> >> >> > else if((this -> CurrentTimeIndex) < 100) fname << path <<<br>> >>> >> >> >> > "/"<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>> >>> >> >> >> ><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 www.kitware.com<br>> >>> >> >> >> ><br>> >>> >> >> >> > Visit other Kitware open-source projects at<br>> >>> >> >> >> > http://www.kitware.com/opensource/opensource.html<br>> >>> >> >> >> ><br>> >>> >> >> >> > Please keep messages on-topic and check the ParaView Wiki at:<br>> >>> >> >> >> > http://paraview.org/Wiki/ParaView<br>> >>> >> >> >> ><br>> >>> >> >> >> > Follow this link to subscribe/unsubscribe:<br>> >>> >> >> >> > http://www.paraview.org/mailman/listinfo/paraview<br>> >>> >> >> >> ><br>> >>> >> >> >> ><br>> >>> >> >> ><br>> >>> >> >> > ________________________________<br>> >>> >> >> > ¿Quieres conocerte mejor? ¡Conoce lo que Windows Live tiene<br>> >>> >> >> > especialmente<br>> >>> >> >> > para ti!<br>> >>> >> >> > _______________________________________________<br>> >>> >> >> > Powered by www.kitware.com<br>> >>> >> >> ><br>> >>> >> >> > Visit other Kitware open-source projects at<br>> >>> >> >> > http://www.kitware.com/opensource/opensource.html<br>> >>> >> >> ><br>> >>> >> >> > Please keep messages on-topic and check the ParaView Wiki at:<br>> >>> >> >> > http://paraview.org/Wiki/ParaView<br>> >>> >> >> ><br>> >>> >> >> > Follow this link to subscribe/unsubscribe:<br>> >>> >> >> > http://www.paraview.org/mailman/listinfo/paraview<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<br>> >>> > realmente!<br>> >>> > _______________________________________________<br>> >>> > Powered by www.kitware.com<br>> >>> ><br>> >>> > Visit other Kitware open-source projects at<br>> >>> > http://www.kitware.com/opensource/opensource.html<br>> >>> ><br>> >>> > Please keep messages on-topic and check the ParaView Wiki at:<br>> >>> > http://paraview.org/Wiki/ParaView<br>> >>> ><br>> >>> > Follow this link to subscribe/unsubscribe:<br>> >>> > http://www.paraview.org/mailman/listinfo/paraview<br>> >>> ><br>> >>> ><br>> >><br>> >> ________________________________<br>> >> ¿Cuál de estas 16 personalidades es la tuya? ¡Descubre quién eres realmente!<br>> >><br>> >> _______________________________________________<br>> >> Powered by www.kitware.com<br>> >><br>> >> Visit other Kitware open-source projects at<br>> >> http://www.kitware.com/opensource/opensource.html<br>> >><br>> >> Please keep messages on-topic and check the ParaView Wiki at:<br>> >> http://paraview.org/Wiki/ParaView<br>> >><br>> >> Follow this link to subscribe/unsubscribe:<br>> >> http://www.paraview.org/mailman/listinfo/paraview<br>> >><br>> >> ________________________________<br>> >> ¿Quieres conocerte mejor? ¡Conoce lo que Windows Live tiene especialmente<br>> >> para ti!<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></body>
</html>