[Numpy-discussion] numpy.distutils/f2py: forcing 8-bit reals

David Warde-Farley dwf@cs.toronto....
Tue Mar 30 13:25:22 CDT 2010


On 30-Mar-10, at 2:14 PM, David Warde-Farley wrote:

> Hey Dag,
>
> On 30-Mar-10, at 5:02 AM, Dag Sverre Seljebotn wrote:
>
>> Well, you can pass -fdefault-real-8 and then write .pyf headers where
>> real(8) is always given explicitly.
>
>
> Actually I've gotten it to work this way, with real(8) in the  
> wrappers.
>
> BUT... for some reason it requires me to set the environment  
> variable G77='gfortran -fdefault-real-8'. Simply putting it in  
> f2py_options='--f77flags=\'-fdefault-real-8\' --f90flags=\'-fdefault- 
> real-8\'' doesn't seem to do the trick. I don't really understand why.

Sorry, that should say F77='gfortran -fdefault-real-8'. Setting G77  
obviously doesn't do anything. ;)

Without that environment variable, I think it is blowing the stack;  
the program just hangs.

David


More information about the NumPy-Discussion mailing list