[Numpy-discussion] numpy.distutils/f2py: forcing 8-bit reals
David Warde-Farley
dwf at cs.toronto.edu
Tue Mar 30 14:14:51 EDT 2010
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.
David
More information about the NumPy-Discussion
mailing list