[Numpy-discussion] f2py-users list not working

Robin robince at gmail.com
Tue Nov 3 16:42:58 EST 2009

I just tried to send the message below to f2py-users -
f2py-users at cens.ioc.ee, but delivery failed.

Not sure where else to report this so hopefully here is ok.



---------- Forwarded message ----------
From: Mail Delivery Subsystem <mailer-daemon at googlemail.com>
Date: Tue, Nov 3, 2009 at 9:40 PM
Subject: Delivery Status Notification (Failure)
To: robince at gmail.com

Delivery to the following recipient failed permanently:

    f2py-users at cens.ioc.ee

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the
recipient domain. We recommend contacting the other email provider for
further information about the cause of this error. The error that the
other server returned was: 550 550 Unrouteable address (state 14).

----- Original message -----
Subject: writing module for 32/64 bit
From: Robin <robince at gmail.com>
To: f2py-users at cens.ioc.ee
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable


I would like to write some subroutines in fortran involving integers
and distribute them in a small package.  Users might be on 32 bit or
64 bit.

Is there an easy or recommended way to approach this? Ideally I would
like to work with the native integer type - but if I use 'integer' in
fortran it is always 32 bit and f2py converts input aways when numpy
is 64 bit. If I use integer*8 in the code then its fine for 64 bit,
but on 32 bit platforms, both f2py has to convert and its not the
native integer size.

What I (think) I'd like to do is be able to use the native platform
integer type, like numpy does, and then not worry about. I found there
are options like -fdefault-int-8 for gfortran, but when I add that
stuff breaks (bus error) since I guess f2py doesn't know about it and
is converting and passing 32 bits anyway.

Is there any way around this, or do I need to maintain 2 different
versions with different fortran code for 32bit/64bit? Or is it
possible to acheive something like this with preprossor #ifdefs? (not
sure how this works with fortran, or if f2py would be aware of it).



More information about the NumPy-Discussion mailing list