Re: [Numpy-discussion] future of f2py and Fortran90+

2015-12-04 Thread Sturla Molden
On 03/12/15 22:38, Eric Firing wrote: Right, but for each function that requires writing two wrappers, one in Fortran and a second one in cython. Yes, you need two wrappers for each function, one in Cython and one in Fortran 2003. That is what fwrap is supposed to automate, but it has been a

Re: [Numpy-discussion] future of f2py and Fortran90+

2015-12-03 Thread Tim Cera
On Tue, Jul 14, 2015 at 10:13 PM Sturla Molden wrote: > Eric Firing wrote: > > > I'm curious: has anyone been looking into what it would take to enable > > f2py to handle modern Fortran in general? And into prospects for > > getting such an effort funded? > > No need. Use Cython and Fortran 200

Re: [Numpy-discussion] future of f2py and Fortran90+

2015-12-03 Thread Eric Firing
On 2015/12/03 11:08 AM, Yuxiang Wang wrote: Too add to Sturla - I think this is what he mentioned but in more details: http://www.fortran90.org/src/best-practices.html#interfacing-with-python Right, but for each function that requires writing two wrappers, one in Fortran and a second one in c

Re: [Numpy-discussion] future of f2py and Fortran90+

2015-12-03 Thread Yuxiang Wang
Too add to Sturla - I think this is what he mentioned but in more details: http://www.fortran90.org/src/best-practices.html#interfacing-with-python Shawn On Tue, Jul 14, 2015 at 9:45 PM, Sturla Molden wrote: > Eric Firing wrote: > >> I'm curious: has anyone been looking into what it would take

Re: [Numpy-discussion] future of f2py and Fortran90+

2015-12-03 Thread David Verelst
f90wrap [1] extends the functionality of f2py, and can automatically generate sensible wrappers for certain cases. [1] https://github.com/jameskermode/f90wrap On 15 July 2015 at 03:45, Sturla Molden wrote: > Eric Firing wrote: > > > I'm curious: has anyone been looking into what it would take t

Re: [Numpy-discussion] future of f2py and Fortran90+

2015-07-14 Thread Sturla Molden
Eric Firing wrote: > I'm curious: has anyone been looking into what it would take to enable > f2py to handle modern Fortran in general? And into prospects for > getting such an effort funded? No need. Use Cython and Fortran 2003 ISO C bindings. That is the only portable way to interop between

[Numpy-discussion] future of f2py and Fortran90+

2015-07-14 Thread Eric Firing
F2py is a great tool, but my impression is that it is being left behind by the evolution of Fortran from F90 onward. This is unfortunate; it would be nice to be able to easily wrap new Fortran libraries. I'm curious: has anyone been looking into what it would take to enable f2py to handle mode