[f2py] Why this error?
Al Niessner
Al.Niessner at jpl.nasa.gov
Fri Aug 6 02:05:27 EEST 2010
I tried several combinations and it does read the .f2py but does not
actually fix the compile. Can I just upgrade f2py from my current
version to the newest without the rest of numpy?
f2py -c kinds.f90 mathsub.f -m mathsub
Reading .f2py_f2cmap ...
Mapping "real(kind=pr)" to "double"
Mapping "real(kind=KIND( 1.0d0 ))" to "double"
Mapping "real(kind=dp)" to "double"
Mapping "real(kind=kind( 1.0d0 ))" to "double"
Succesfully applied user defined changes from .f2py_f2cmap
<...snip...>
gfortran:f77: mathsub.f
gfortran:f77: /tmp/tmpKaO9PC/src.linux-x86_64-2.6/mathsub-f2pywrappers.f
/tmp/tmpKaO9PC/src.linux-x86_64-2.6/mathsub-f2pywrappers.f:7.18:
real(kind=16) x
1
Error: Kind 16 not supported for type REAL at (1)
/tmp/tmpKaO9PC/src.linux-x86_64-2.6/mathsub-f2pywrappers.f:7.18:
real(kind=16) x
1
Error: Kind 16 not supported for type REAL at (1)
On Mon, 2010-08-02 at 12:12 -0700, Pearu Peterson wrote:
> On Mon, Aug 2, 2010 at 8:46 PM, Al Niessner <Al.Niessner at jpl.nasa.gov> wrote:
> >
> > Here is the bottom of the output from f2py:
> >
> > Version: 2
> > numpy Version: 1.3.0
>
> So the problem could be because you are using rather old numpy version.
> f2py version 2_3744
>
> $ f2py -c -m foo kinds.f90 mathsub.f
>
> successfully builds the extension module (even without the
> .f2py_f2cmap file when using f90 (or higher) compiler).
> Btw, when you create the .f2py_f2cmap file then you can check its functionality
> by executing `f2py -v`. For example, it shows to me
>
> $ f2py -v
> Reading .f2py_f2cmap ...
> Mapping "real(kind=dp)" to "double"
> Succesfully applied user defined changes from .f2py_f2cmap
> 2_3744
>
> The file contains
> {'real':{'dp':'double'}}
>
> Pearu
>
> _______________________________________________
> f2py-users mailing list
> f2py-users at cens.ioc.ee
> http://cens.ioc.ee/mailman/listinfo/f2py-users
--
Al Niessner
818.354.0859
--------
| dS | >= 0
--------
More information about the f2py-users
mailing list