[Paraview] Writing binary files: C/Fortran interface to VTK XML files.

Mathieu Malaterre mathieu.malaterre at kitware.com
Thu Jun 2 21:52:56 EDT 2005


Sam,

   I am glad you are keeping an eye on the mailing list, this is very important for an opensource project!

   The reason I did not warn you directly about it, is because the fortran interface involved a great knowledge in cmake, linkers and compilers. The task was then delegated to Brad Kind. According to him, he rewrote most of what was commited in CVS, for a more simpliest interface. Thus I believe the error you reported should go away. As a side note he also gave a more OO look to the interface giving you access to the full range of datasets available in VTK and not only vtkUnstructuredGrid.

   Brad, could you confirm you'll have something commited in VTK within the next few days ?

Best regards,
Mathieu

> Subject: Re: [Paraview] Writing binary files: C/Fortran interface to VTK XML files.
> 
> Greetings Mathieu;
> 
> I have accessed the VTK cvs repository as you
> suggested for Giuseppe Gariup below.
> 
> I have been reviewing their content. I am planning
> on using the Fortran calls to see if I can generate
> acceptable (that is, readable) files for ParaView.
> 
> I did spot a typo that needs to be corrected:
> 
> At line 142 in file 'vtkXMLCInterface.cxx' the binding
> 
> void VTK_FORTRAN_NAME(vtkxml_setcelldata, VTKXML_SETPOINTDATA)
> 
> needs to be changed to 
> 
> void VTK_FORTRAN_NAME(vtkxml_setcelldata, VTKXML_SETCELLDATA)
> 
> I will see if I can expand 'TestXMLCInterface.c' slightly for you.
> 
> I will work with Brian Wylie to get the neccessary object libs when I 
> think I am ready to test the Fortran Binding in my code Fma-3D.
> 
> Regards,
> 
> Sam Key
> 
> 
> ----- Original Message ----- 
> From: "Mathieu Malaterre" <mathieu.malaterre at kitware.com>
> To: "Giuseppe Gariup" <giuseppe.gariup at gmail.com>
> Cc: "paraview" <paraview at paraview.org>
> Sent: Monday, May 30, 2005 3:47 PM
> Subject: Re: [Paraview] using binary files: C interface to VTK XML files
> 
> 
> > Giuseppe Gariup wrote:
> > > Hi everybody:
> > >   I am using paraview to display the output of a finite element
> > > program. I need to write the xml file and I'd rather use the binary
> > > format to input the points of the mesh. I am using C++. The question
> > > is: I have a vector with the coordinates of the points and I have to
> > > put it in the xml file. Has any of you faced a similar situation?
> > 
> > Giuseppe,
> > 
> > There is an ongoing effort to have both a C and fortran interface to 
> > write VTK XML files. This will require VTK CVS if you are interested, 
> > for more information, have a look at:
> > 
> > VTK/IO/Testing/Cxx/
> >                    TestXMLCInterface.c
> >                    vtkFortran.h
> >                    vtkXMLCInterface.cxx
> >                    vtkXMLCInterface.h
> > 
> > 
> > Please keep in mind that this was comited only today and might require 
> > a few iterations to stabilize.
> > 
> > Comments very welcome
> > Mathieu
> > _______________________________________________
> > ParaView mailing list
> > ParaView at paraview.org
> > http://www.paraview.org/mailman/listinfo/paraview
> > 
> 
> 



More information about the ParaView mailing list