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

2010-03-30 Thread David Warde-Farley
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. Okay, the answer (without setting the F77 environment variable) is basically to expect real-8's in the .pyf file and compile the w

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

2010-03-30 Thread David Warde-Farley
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) i

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

2010-03-30 Thread David Warde-Farley
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

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

2010-03-30 Thread Dag Sverre Seljebotn
Dag Sverre Seljebotn wrote: > David Warde-Farley wrote: >> Hi, >> >> In my setup.py, I have >> from numpy.distutils.misc_util import Configuration >> >> fflags= '-fdefault-real-8 -ffixed-form' >> config = Configuration( >> 'foo', >> parent_package=None, >> top_path=None, >> f2py

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

2010-03-30 Thread Dag Sverre Seljebotn
David Warde-Farley wrote: > Hi, > > In my setup.py, I have > from numpy.distutils.misc_util import Configuration > > fflags= '-fdefault-real-8 -ffixed-form' > config = Configuration( > 'foo', > parent_package=None, > top_path=None, > f2py_options='--f77flags=\'%s\' --f90flags=\'

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

2010-03-29 Thread David Warde-Farley
Hi, In my setup.py, I have from numpy.distutils.misc_util import Configuration fflags= '-fdefault-real-8 -ffixed-form' config = Configuration( 'foo', parent_package=None, top_path=None, f2py_options='--f77flags=\'%s\' --f90flags=\'%s\'' % (fflags, fflags) ) However I am sti