Re: [ROOT] FFTW and ROOT

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Fri Nov 03 2000 - 14:09:50 MET


Hi all,

Here is my answer to Derek about FFTW, if some people are interested...

Hi Derek,

In fact, we designed a set of wrapper functions to hide the fftw
particular calls. This is probably not what you wanted to hear but I can
give you some advices nevertheless. I had to include a big set of C
files into ROOT, for my project.
The point is that rootcint has some problems with C. I used bare cint to
do the job (look at the MAKECINT utility), i.e. produce the dictionnary
files from the C headers. The trick is to make it think that the code is
C++ and perhaps wrap the headers in

extern "C" {
<the header>
}

Tell me if you have problems

Cheers

Damir



Rene Brun wrote:
> 
> Hi Derek,
> 
> There was a discussion recently on roottalk about FFTs (see archive).
> 
> If you want to make an interactive interface to an old library (C or f77),
> you can read the instructions at
> 
> http://root.cern.ch/root/HowtoCERNLIB.html
> 
> This URL talks about cernlib, but the same recipee can be used
> for other libs as well.
> 
> Rene Brun
> 
> Derek M. Tournear wrote:
> >
> > Has anyone successfully implemented FFTW with ROOT?
> > I am trying on NT and I seem to have trouble getting ROOT
> > to recognize the function fftw_create_plan  I have built the
> > library, loaded it and included the fftw.h header.  Anyone else
> > have experience with this?
> >
> > Thanks,
> >
> > Derek M. Tournear
> > SLAC Research Associate (650)-926-3971 fax (650)926-4335
> > http://www.slac.stanford.edu/~tournear

-- 
=====================================================================
| Damir Buskulic                  | Universite de Savoie/LAPP       |
|                                 | Chemin de Bellevue, B.P. 110    |
| Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
| e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
=====================================================================
mailto:buskulic@lapp.in2p3.fr



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:36 MET