[Paraview] 3,6.1 and silo plugin

Alin M Elena alinm.elena at googlemail.com
Fri Jul 17 18:03:12 EDT 2009


Hi,

I try to compile paraview 3.6.1 with silo plugin but I get this error

[ 73%] Building CXX object 
Servers/Filters/CMakeFiles/vtkPVFilters.dir/vtkSiloReader.o                            
cd /home/alin/ParaView3/build2/Servers/Filters && /usr/bin/g++   -
DvtkPVFilters_EXPORTS -DVTK_PYTHON_BUILD -Wno-deprecated -fPIC -
I/home/alin/ParaView3/paraview3/Servers/Filters -I/home/alin/ParaView3/build2 
-I/home/alin/ParaView3/build2/VTK/Utilities -I/usr/include/python2.6 -
I/home/alin/ParaView3/paraview3/Utilities/VTKPythonWrapping/Executable -
I/usr/local/include -I/home/alin/ParaView3/build2/Servers/Filters -
I/home/alin/ParaView3/paraview3/Servers/Common -
I/home/alin/ParaView3/paraview3/Utilities/hdf5 -
I/home/alin/ParaView3/build2/Utilities/hdf5 -
I/home/alin/ParaView3/paraview3/VTK -I/home/alin/ParaView3/build2/VTK -
I/home/alin/ParaView3/paraview3/VTK/Utilities -
I/home/alin/ParaView3/paraview3/VTK/Common -
I/home/alin/ParaView3/build2/VTK/Common -
I/home/alin/ParaView3/paraview3/VTK/Filtering -
I/home/alin/ParaView3/build2/VTK/Filtering -
I/home/alin/ParaView3/paraview3/VTK/GenericFiltering -
I/home/alin/ParaView3/build2/VTK/GenericFiltering -
I/home/alin/ParaView3/paraview3/VTK/IO -I/home/alin/ParaView3/build2/VTK/IO -
I/home/alin/ParaView3/paraview3/VTK/Imaging -
I/home/alin/ParaView3/build2/VTK/Imaging -
I/home/alin/ParaView3/paraview3/VTK/Rendering -
I/home/alin/ParaView3/build2/VTK/Rendering -
I/home/alin/ParaView3/paraview3/VTK/Parallel -
I/home/alin/ParaView3/build2/VTK/Parallel -
I/home/alin/ParaView3/paraview3/VTK/Graphics -
I/home/alin/ParaView3/build2/VTK/Graphics -
I/home/alin/ParaView3/paraview3/VTK/Hybrid -
I/home/alin/ParaView3/build2/VTK/Hybrid -
I/home/alin/ParaView3/paraview3/VTK/VolumeRendering -
I/home/alin/ParaView3/build2/VTK/VolumeRendering -
I/home/alin/ParaView3/paraview3/VTK/Widgets -
I/home/alin/ParaView3/build2/VTK/Widgets -
I/home/alin/ParaView3/paraview3/VTK/Infovis -
I/home/alin/ParaView3/build2/VTK/Infovis -
I/home/alin/ParaView3/paraview3/VTK/Views -
I/home/alin/ParaView3/build2/VTK/Views -
I/home/alin/ParaView3/paraview3/Utilities/Xdmf2/vtk -
I/home/alin/ParaView3/build2/Utilities/Xdmf2/vtk -
I/home/alin/ParaView3/paraview3/Utilities/VTKClientServer -
I/home/alin/ParaView3/build2/Utilities/VTKClientServer   -o 
CMakeFiles/vtkPVFilters.dir/vtkSiloReader.o -c 
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx                                                                                                                
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx: In member 
function ‘vtkDataSet* vtkSiloReader::CreateRectilinearMesh(DBquadmesh*)’:                                                                               
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:1732: error: 
pointer of type ‘void *’ used in arithmetic                                                                                                           
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:1732: error: 
‘void*’ is not a pointer-to-object type                                                                                                               
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx: In member 
function ‘vtkDataSet* vtkSiloReader::GetCurve(DBfile*, const char*)’:                                                                                   
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2008: error: 
pointer of type ‘void *’ used in arithmetic                                                                                                           
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2008: error: 
‘void*’ is not a pointer-to-object type                                                                                                               
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2008: error: 
pointer of type ‘void *’ used in arithmetic                                                                                                           
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2008: error: 
‘void*’ is not a pointer-to-object type                                                                                                               
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx: In member 
function ‘vtkDataArray* vtkSiloReader::GetQuadVectorVar(DBquadvar*)’:                                                                                   
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2205: error: 
pointer of type ‘void *’ used in arithmetic                                                                                                           
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2205: error: 
‘void*’ is not a pointer-to-object type                                                                                                               
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2206: error: 
pointer of type ‘void *’ used in arithmetic                                                                                                           
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2206: error: 
‘void*’ is not a pointer-to-object type                                                                                                               
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2206: error: 
pointer of type ‘void *’ used in arithmetic                                                                                                           
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2206: error: 
‘void*’ is not a pointer-to-object type                                                                                                               
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx: In member 
function ‘vtkDataSet* vtkSiloReader::GetPointMesh(DBfile*, const char*)’:                                                                               
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2256: error: 
pointer of type ‘void *’ used in arithmetic                                                                                                           
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2256: error: 
‘void*’ is not a pointer-to-object type                                                                                                               
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx: In member 
function ‘vtkDataArray* vtkSiloReader::GetPointVectorVar(DBmeshvar*)’:                                                                                  
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2306: error: 
pointer of type ‘void *’ used in arithmetic                                                                                                           
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2306: error: 
‘void*’ is not a pointer-to-object type                                                                                                               
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2307: error: 
pointer of type ‘void *’ used in arithmetic                                                                                                           
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2307: error: 
‘void*’ is not a pointer-to-object type                                                                                                               
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2307: error: 
pointer of type ‘void *’ used in arithmetic                                                                                                           
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2307: error: 
‘void*’ is not a pointer-to-object type                                                                                                               
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx: In member 
function ‘vtkDataArray* vtkSiloReader::GetUcdVectorVar(DBucdvar*)’:                                                                                     
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2482: error: 
invalid conversion from ‘void*’ to ‘float*’
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2483: error: 
invalid conversion from ‘void*’ to ‘float*’
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2485: error: 
invalid conversion from ‘void*’ to ‘float*’
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx: In member 
function ‘vtkDataSet* vtkSiloReader::GetUnstructuredMesh(DBfile*, const 
char*)’:
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2577: error: 
invalid conversion from ‘void*’ to ‘const float*’
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2578: error: 
invalid conversion from ‘void*’ to ‘const float*’
/home/alin/ParaView3/paraview3/Servers/Filters/vtkSiloReader.cxx:2581: error: 
invalid conversion from ‘void*’ to ‘const float*’
make[2]: *** [Servers/Filters/CMakeFiles/vtkPVFilters.dir/vtkSiloReader.o] 
Error 1
make[2]: Leaving directory `/home/alin/ParaView3/build2'
make[1]: *** [Servers/Filters/CMakeFiles/vtkPVFilters.dir/all] Error 2
make[1]: Leaving directory `/home/alin/ParaView3/build2'
make: *** [all] Error 2


Any thoughts 
Alin



-- 
 ______________________________________________________________________
 "If the Universities will not study useless subjects, who will?"
                             G. F. FitzGerald, Nature, 45/46, 392 (1892)
 ______________________________________________________________________
 Mr  Alin M ELENA
 Irish Centre for High-End Computing -- www.ichec.ie
 The Design Tower, Trinity Technology & Enterprise Campus
 Grand Canal Quay,  Dublin 2, Ireland
 Tel:   +353 (0) 1 5241608 ext 29
 Fax: +353 (0) 1 7645845
 http://alin.elenaworld.net
 alin.elena at ichec.ie
 alinm.elena at gmail.com
 ______________________________________________________________________
On Friday 17 July 2009 19:06:18 paraview-request at paraview.org wrote:
> Send ParaView mailing list submissions to
> 	paraview at paraview.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://www.paraview.org/mailman/listinfo/paraview
> or, via email, send a message with subject or body 'help' to
> 	paraview-request at paraview.org
>
> You can reach the person managing the list at
> 	paraview-owner at paraview.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ParaView digest..."
>
>
> Today's Topics:
>
>    1. Re: memory leak in writer (Utkarsh Ayachit)
>    2. Re: memory leak in writer (Natalie Happenhofer)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 17 Jul 2009 13:44:39 -0400
> From: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
> Subject: Re: [Paraview] memory leak in writer
> To: Natalie Happenhofer <nataliehapp at hotmail.com>
> Cc: paraview at paraview.org
> Message-ID:
> 	<7ba9d6a30907171044j47cdfa1bt4a0264ec1f8fea86 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Try the following:
>
> cvs -d :pserver:anoncvs at www.paraview.org:/cvsroot/ParaView3 co -r
> ParaView-3-6-1 ParaView3
>
>
>
>
> On Fri, Jul 17, 2009 at 1:41 PM, Natalie
>
> Happenhofer<nataliehapp at hotmail.com> wrote:
> > ok, I tried cvs -d
> > :pserver:anoncvs at www.paraview.org:/cvsroot/ParaView-3-6-1 , but it says
> > there is no such repository.
> >
> > N
> >
> >> Date: Fri, 17 Jul 2009 13:34:34 -0400
> >> Subject: Re: [Paraview] memory leak in writer
> >> From: utkarsh.ayachit at kitware.com
> >> To: nataliehapp at hotmail.com
> >>
> >> You can check out the CVS tag: ParaView-3-6 for the 3.6 branch or
> >> ParaView-3-6-1 for the release tag.
> >>
> >> Utkarsh
> >>
> >> On Fri, Jul 17, 2009 at 1:31 PM, Natalie
> >>
> >> Happenhofer<nataliehapp at hotmail.com> wrote:
> >> > But the source code is also not available yet, is it?
> >> >
> >> > Natalie
> >> >
> >> >> Date: Fri, 17 Jul 2009 13:22:20 -0400
> >> >> Subject: Re: [Paraview] memory leak in writer
> >> >> From: utkarsh.ayachit at kitware.com
> >> >> To: nataliehapp at hotmail.com
> >> >> CC: paraview at paraview.org
> >> >>
> >> >> You can't download 3.6 binaries yet. We should have them posted by
> >> >> early next week.
> >> >>
> >> >> Utkarsh
> >> >>
> >> >> On Fri, Jul 17, 2009 at 1:13 PM, Natalie
> >> >>
> >> >> Happenhofer<nataliehapp at hotmail.com> wrote:
> >> >> > I have written it months ago and it worked well for small files and
> >> >> > timeseries for about 30 files - I have just come across it trying
> >> >> > to write a
> >> >> > time series of 200 files.
> >> >> >
> >> >> > I can already download ParaView 3.6? Great, I did not know this!
> >> >> >
> >> >> > thx,
> >> >> > Natalie
> >> >> >
> >> >> >> Date: Fri, 17 Jul 2009 08:47:37 -0400
> >> >> >> Subject: Re: [Paraview] memory leak in writer
> >> >> >> From: utkarsh.ayachit at kitware.com
> >> >> >> To: nataliehapp at hotmail.com
> >> >> >> CC: paraview at paraview.org
> >> >> >>
> >> >> >> Out of curiosity, why are you writing your own wrapper? ParaView
> >> >> >> 3.6 onwards supports writing time series for legacy vtk files.
> >> >> >>
> >> >> >> Utkarsh
> >> >> >>
> >> >> >> On Fri, Jul 17, 2009 at 7:53 AM, Natalie
> >> >> >>
> >> >> >> Happenhofer<nataliehapp at hotmail.com> wrote:
> >> >> >> > Hi!
> >> >> >> > I?ve written a Wrapper for the Legacy VTK files writer, so that
> >> >> >> > it writes a
> >> >> >> > whole timeseries if I want it to. Lamentably, applying it, it
> >> >> >> > needs
> >> >> >> > more
> >> >> >> > and
> >> >> >> > more memory, so I am looking for a memory leak.
> >> >> >> >
> >> >> >> > Here is the bit of code I suspect:
> >> >> >> >
> >> >> >> > ?vtkInformation* inInfo =
> >> >> >> > inputVector[0]->GetInformationObject(0); ? vtkDataObject* input
> >> >> >> > =
> >> >> >> > inInfo->Get(vtkDataObject::DATA_OBJECT());
> >> >> >> >
> >> >> >> > ? vtkSmartPointer<vtkDataObject> inputCopy;
> >> >> >> > ? inputCopy.TakeReference(input->NewInstance());
> >> >> >> > ? inputCopy->ShallowCopy(input);
> >> >> >> >
> >> >> >> > ? vtksys_ios::ostringstream fname;
> >> >> >> > ? if (this->WriteAllTimeSteps)
> >> >> >> > ??? {
> >> >> >> > ??? vtkstd::string path =
> >> >> >> > ????? vtksys::SystemTools::GetFilenamePath(this->FileName);
> >> >> >> > ??? vtkstd::string fnamenoext =
> >> >> >> >
> >> >> >> >
> >> >> >> > vtksys::SystemTools::GetFilenameWithoutLastExtension(this->FileN
> >> >> >> >ame); ??? vtkstd::string ext =
> >> >> >> >
> >> >> >> > vtksys::SystemTools::GetFilenameLastExtension(this->FileName);
> >> >> >> > ??? if((this -> CurrentTimeIndex) < 10)? fname << path << "/" <<
> >> >> >> > fnamenoext
> >> >> >> > << ".000" <<this->CurrentTimeIndex << ext;
> >> >> >> > ??? else if((this -> CurrentTimeIndex) < 100) fname << path <<
> >> >> >> > "/" <<
> >> >> >> > fnamenoext << ".00" << this -> CurrentTimeIndex << ext;
> >> >> >> > ??? else if((this -> CurrentTimeIndex) < 1000) fname << path <<
> >> >> >> > "/"
> >> >> >> > <<
> >> >> >> > fnamenoext << ".0" << this -> CurrentTimeIndex << ext;
> >> >> >> > ??? else fname << path << "/" << fnamenoext << this ->
> >> >> >> > CurrentTimeIndex
> >> >> >> > <<
> >> >> >> > ext;
> >> >> >> > ??? }
> >> >> >> > ? else
> >> >> >> > ??? {
> >> >> >> > ??? fname << this->FileName;
> >> >> >> > ??? }
> >> >> >> >
> >> >> >> > //Here I call the usual VTK Writer and set the input
> >> >> >> >
> >> >> >> > ? vtkGenericDataObjectWriter* Writer =
> >> >> >> > vtkGenericDataObjectWriter::New();
> >> >> >> > ? Writer -> SetInput(inputCopy);
> >> >> >> > ? Writer -> SetFileName(fname.str().c_str());
> >> >> >> > ? if((this -> FileType) == 1) Writer -> SetFileTypeToASCII();
> >> >> >> > ? else?? Writer -> SetFileTypeToBinary();
> >> >> >> >
> >> >> >> > ? Writer -> Update();
> >> >> >> >
> >> >> >> > ? if (this->WriteAllTimeSteps)
> >> >> >> > ??? {
> >> >> >> > ??? this->CurrentTimeIndex++;
> >> >> >> > ??? if (this->CurrentTimeIndex == this->NumberOfTimeSteps)
> >> >> >> > ????? {
> >> >> >> > ????? // Tell the pipeline to stop looping.
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > request->Remove(vtkStreamingDemandDrivenPipeline::CONTINUE_EXECU
> >> >> >> >TING()); ????? this->CurrentTimeIndex = 0;
> >> >> >> > ????? }
> >> >> >> > ??? }
> >> >> >> >
> >> >> >> > ? Writer -> Delete();
> >> >> >> > ? return 1;
> >> >> >> >
> >> >> >> > Is there anything I forget to delete?
> >> >> >> >
> >> >> >> >
> >> >> >> > thx for answers
> >> >> >> > Natalie
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > ________________________________
> >> >> >> > Nuevo Internet Explorer 8 ?Es Gratis y optimizado para MSN!
> >> >> >> > _______________________________________________
> >> >> >> > Powered by www.kitware.com
> >> >> >> >
> >> >> >> > Visit other Kitware open-source projects at
> >> >> >> > http://www.kitware.com/opensource/opensource.html
> >> >> >> >
> >> >> >> > Please keep messages on-topic and check the ParaView Wiki at:
> >> >> >> > http://paraview.org/Wiki/ParaView
> >> >> >> >
> >> >> >> > Follow this link to subscribe/unsubscribe:
> >> >> >> > http://www.paraview.org/mailman/listinfo/paraview
> >> >> >
> >> >> > ________________________________
> >> >> > ?Quieres conocerte mejor? ?Conoce lo que Windows Live tiene
> >> >> > especialmente
> >> >> > para ti!
> >> >> > _______________________________________________
> >> >> > Powered by www.kitware.com
> >> >> >
> >> >> > Visit other Kitware open-source projects at
> >> >> > http://www.kitware.com/opensource/opensource.html
> >> >> >
> >> >> > Please keep messages on-topic and check the ParaView Wiki at:
> >> >> > http://paraview.org/Wiki/ParaView
> >> >> >
> >> >> > Follow this link to subscribe/unsubscribe:
> >> >> > http://www.paraview.org/mailman/listinfo/paraview
> >> >
> >> > ________________________________
> >> > ?Quieres conocerte mejor? ?Conoce lo que Windows Live tiene
> >> > especialmente
> >> > para ti!
> >
> > ________________________________
> > ?Cu?l de estas 16 personalidades es la tuya? ?Descubre qui?n eres
> > realmente! _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the ParaView Wiki at:
> > http://paraview.org/Wiki/ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.paraview.org/mailman/listinfo/paraview
>
> ------------------------------
>
> Message: 2
> Date: Fri, 17 Jul 2009 20:06:15 +0200
> From: Natalie Happenhofer <nataliehapp at hotmail.com>
> Subject: Re: [Paraview] memory leak in writer
> To: <paraview at paraview.org>
> Message-ID: <BAY122-W10CDA02C8F4CA680FA50D3BC1E0 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Thanks! :-)
>
> > Date: Fri, 17 Jul 2009 13:44:39 -0400
> > Subject: Re: [Paraview] memory leak in writer
> > From: utkarsh.ayachit at kitware.com
> > To: nataliehapp at hotmail.com
> > CC: paraview at paraview.org
> >
> > Try the following:
> >
> > cvs -d :pserver:anoncvs at www.paraview.org:/cvsroot/ParaView3 co -r
> > ParaView-3-6-1 ParaView3
> >
> >
> >
> >
> > On Fri, Jul 17, 2009 at 1:41 PM, Natalie
> >
> > Happenhofer<nataliehapp at hotmail.com> wrote:
> > > ok, I tried cvs -d
> > > :pserver:anoncvs at www.paraview.org:/cvsroot/ParaView-3-6-1 , but it says
> > > there is no such repository.
> > >
> > > N
> > >
> > >> Date: Fri, 17 Jul 2009 13:34:34 -0400
> > >> Subject: Re: [Paraview] memory leak in writer
> > >> From: utkarsh.ayachit at kitware.com
> > >> To: nataliehapp at hotmail.com
> > >>
> > >> You can check out the CVS tag: ParaView-3-6 for the 3.6 branch or
> > >> ParaView-3-6-1 for the release tag.
> > >>
> > >> Utkarsh
> > >>
> > >> On Fri, Jul 17, 2009 at 1:31 PM, Natalie
> > >>
> > >> Happenhofer<nataliehapp at hotmail.com> wrote:
> > >> > But the source code is also not available yet, is it?
> > >> >
> > >> > Natalie
> > >> >
> > >> >> Date: Fri, 17 Jul 2009 13:22:20 -0400
> > >> >> Subject: Re: [Paraview] memory leak in writer
> > >> >> From: utkarsh.ayachit at kitware.com
> > >> >> To: nataliehapp at hotmail.com
> > >> >> CC: paraview at paraview.org
> > >> >>
> > >> >> You can't download 3.6 binaries yet. We should have them posted by
> > >> >> early next week.
> > >> >>
> > >> >> Utkarsh
> > >> >>
> > >> >> On Fri, Jul 17, 2009 at 1:13 PM, Natalie
> > >> >>
> > >> >> Happenhofer<nataliehapp at hotmail.com> wrote:
> > >> >> > I have written it months ago and it worked well for small files
> > >> >> > and timeseries for about 30 files - I have just come across it
> > >> >> > trying to write a
> > >> >> > time series of 200 files.
> > >> >> >
> > >> >> > I can already download ParaView 3.6? Great, I did not know this!
> > >> >> >
> > >> >> > thx,
> > >> >> > Natalie
> > >> >> >
> > >> >> >> Date: Fri, 17 Jul 2009 08:47:37 -0400
> > >> >> >> Subject: Re: [Paraview] memory leak in writer
> > >> >> >> From: utkarsh.ayachit at kitware.com
> > >> >> >> To: nataliehapp at hotmail.com
> > >> >> >> CC: paraview at paraview.org
> > >> >> >>
> > >> >> >> Out of curiosity, why are you writing your own wrapper? ParaView
> > >> >> >> 3.6 onwards supports writing time series for legacy vtk files.
> > >> >> >>
> > >> >> >> Utkarsh
> > >> >> >>
> > >> >> >> On Fri, Jul 17, 2009 at 7:53 AM, Natalie
> > >> >> >>
> > >> >> >> Happenhofer<nataliehapp at hotmail.com> wrote:
> > >> >> >> > Hi!
> > >> >> >> > I?ve written a Wrapper for the Legacy VTK files writer, so
> > >> >> >> > that it writes a
> > >> >> >> > whole timeseries if I want it to. Lamentably, applying it, it
> > >> >> >> > needs
> > >> >> >> > more
> > >> >> >> > and
> > >> >> >> > more memory, so I am looking for a memory leak.
> > >> >> >> >
> > >> >> >> > Here is the bit of code I suspect:
> > >> >> >> >
> > >> >> >> >  vtkInformation* inInfo =
> > >> >> >> > inputVector[0]->GetInformationObject(0); vtkDataObject* input
> > >> >> >> > =
> > >> >> >> > inInfo->Get(vtkDataObject::DATA_OBJECT());
> > >> >> >> >
> > >> >> >> >   vtkSmartPointer<vtkDataObject> inputCopy;
> > >> >> >> >   inputCopy.TakeReference(input->NewInstance());
> > >> >> >> >   inputCopy->ShallowCopy(input);
> > >> >> >> >
> > >> >> >> >   vtksys_ios::ostringstream fname;
> > >> >> >> >   if (this->WriteAllTimeSteps)
> > >> >> >> >     {
> > >> >> >> >     vtkstd::string path =
> > >> >> >> >       vtksys::SystemTools::GetFilenamePath(this->FileName);
> > >> >> >> >     vtkstd::string fnamenoext =
> > >> >> >> >
> > >> >> >> >
> > >> >> >> > vtksys::SystemTools::GetFilenameWithoutLastExtension(this->Fil
> > >> >> >> >eName); vtkstd::string ext =
> > >> >> >> >
> > >> >> >> > vtksys::SystemTools::GetFilenameLastExtension(this->FileName);
> > >> >> >> >     if((this -> CurrentTimeIndex) < 10)  fname << path << "/"
> > >> >> >> > << fnamenoext
> > >> >> >> > << ".000" <<this->CurrentTimeIndex << ext;
> > >> >> >> >     else if((this -> CurrentTimeIndex) < 100) fname << path <<
> > >> >> >> > "/" <<
> > >> >> >> > fnamenoext << ".00" << this -> CurrentTimeIndex << ext;
> > >> >> >> >     else if((this -> CurrentTimeIndex) < 1000) fname << path
> > >> >> >> > << "/"
> > >> >> >> > <<
> > >> >> >> > fnamenoext << ".0" << this -> CurrentTimeIndex << ext;
> > >> >> >> >     else fname << path << "/" << fnamenoext << this ->
> > >> >> >> > CurrentTimeIndex
> > >> >> >> > <<
> > >> >> >> > ext;
> > >> >> >> >     }
> > >> >> >> >   else
> > >> >> >> >     {
> > >> >> >> >     fname << this->FileName;
> > >> >> >> >     }
> > >> >> >> >
> > >> >> >> > //Here I call the usual VTK Writer and set the input
> > >> >> >> >
> > >> >> >> >   vtkGenericDataObjectWriter* Writer =
> > >> >> >> > vtkGenericDataObjectWriter::New();
> > >> >> >> >   Writer -> SetInput(inputCopy);
> > >> >> >> >   Writer -> SetFileName(fname.str().c_str());
> > >> >> >> >   if((this -> FileType) == 1) Writer -> SetFileTypeToASCII();
> > >> >> >> >   else   Writer -> SetFileTypeToBinary();
> > >> >> >> >
> > >> >> >> >   Writer -> Update();
> > >> >> >> >
> > >> >> >> >   if (this->WriteAllTimeSteps)
> > >> >> >> >     {
> > >> >> >> >     this->CurrentTimeIndex++;
> > >> >> >> >     if (this->CurrentTimeIndex == this->NumberOfTimeSteps)
> > >> >> >> >       {
> > >> >> >> >       // Tell the pipeline to stop looping.
> > >> >> >> >
> > >> >> >> >
> > >> >> >> >
> > >> >> >> > request->Remove(vtkStreamingDemandDrivenPipeline::CONTINUE_EXE
> > >> >> >> >CUTING()); this->CurrentTimeIndex = 0;
> > >> >> >> >       }
> > >> >> >> >     }
> > >> >> >> >
> > >> >> >> >   Writer -> Delete();
> > >> >> >> >   return 1;
> > >> >> >> >
> > >> >> >> > Is there anything I forget to delete?
> > >> >> >> >
> > >> >> >> >
> > >> >> >> > thx for answers
> > >> >> >> > Natalie
> > >> >> >> >
> > >> >> >> >
> > >> >> >> >
> > >> >> >> > ________________________________
> > >> >> >> > Nuevo Internet Explorer 8 ?Es Gratis y optimizado para MSN!
> > >> >> >> > _______________________________________________
> > >> >> >> > Powered by www.kitware.com
> > >> >> >> >
> > >> >> >> > Visit other Kitware open-source projects at
> > >> >> >> > http://www.kitware.com/opensource/opensource.html
> > >> >> >> >
> > >> >> >> > Please keep messages on-topic and check the ParaView Wiki at:
> > >> >> >> > http://paraview.org/Wiki/ParaView
> > >> >> >> >
> > >> >> >> > Follow this link to subscribe/unsubscribe:
> > >> >> >> > http://www.paraview.org/mailman/listinfo/paraview
> > >> >> >
> > >> >> > ________________________________
> > >> >> > ?Quieres conocerte mejor? ?Conoce lo que Windows Live tiene
> > >> >> > especialmente
> > >> >> > para ti!
> > >> >> > _______________________________________________
> > >> >> > Powered by www.kitware.com
> > >> >> >
> > >> >> > Visit other Kitware open-source projects at
> > >> >> > http://www.kitware.com/opensource/opensource.html
> > >> >> >
> > >> >> > Please keep messages on-topic and check the ParaView Wiki at:
> > >> >> > http://paraview.org/Wiki/ParaView
> > >> >> >
> > >> >> > Follow this link to subscribe/unsubscribe:
> > >> >> > http://www.paraview.org/mailman/listinfo/paraview
> > >> >
> > >> > ________________________________
> > >> > ?Quieres conocerte mejor? ?Conoce lo que Windows Live tiene
> > >> > especialmente
> > >> > para ti!
> > >
> > > ________________________________
> > > ?Cu?l de estas 16 personalidades es la tuya? ?Descubre qui?n eres
> > > realmente! _______________________________________________
> > > Powered by www.kitware.com
> > >
> > > Visit other Kitware open-source projects at
> > > http://www.kitware.com/opensource/opensource.html
> > >
> > > Please keep messages on-topic and check the ParaView Wiki at:
> > > http://paraview.org/Wiki/ParaView
> > >
> > > Follow this link to subscribe/unsubscribe:
> > > http://www.paraview.org/mailman/listinfo/paraview
>
> _________________________________________________________________
> Vuelve famosa a tu mascota con MSN
> http://events.latam.msn.com/tumascota
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.paraview.org/pipermail/paraview/attachments/20090717/41b358b1/a
>ttachment.htm>
>
> ------------------------------
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
> End of ParaView Digest, Vol 63, Issue 48
> ****************************************


More information about the ParaView mailing list