Re: 'How to call CERNLIB routines..': small bug and question

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Apr 20 1998 - 10:49:00 MEST


Simon Peeters wrote:
> 
> Hi Rooters,
> 
> When I tried to use the CERNLIB routine 'denlan', I was able to create
> some strange Landau-distributions. The problem turned out to be that the
> 'CERNfunctions.h' used:
> extern "C" Double_t denlan_(Float_t *x);
>            --------
> while it should be:
> extern "C" Float_t denlan_(Float_t *x);
>            -------
> since denlan from CERNLIB returns a real. I don't have a clue where/why
> this type conversion goes wrong, but it seems to do. I compared both
> 'rootCERN' versions using the following macro:

Hi Simon,
Thanks for reporting this problem. The type must be Float_t and
not Double_t.
I have modified http://root.cern.ch/HowtoCERNLIB.html

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:32 MET