Re: [Numpy-discussion] f2py with allocatable arrays

2012-07-05 Thread Casey W. Stark
and compilers. Paul, I also stick with .f90 for everything. Best, Casey On Tue, Jul 3, 2012 at 9:51 PM, Paul Anton Letnes < paul.anton.let...@gmail.com> wrote: > > On 4. juli 2012, at 02:23, Sturla Molden wrote: > > > Den 03.07.2012 20:38, skrev Casey W. Stark: > >&

Re: [Numpy-discussion] f2py with allocatable arrays

2012-07-03 Thread Casey W. Stark
Hi all. Thanks for the speedy responses! I'll try to respond to all... The first idea is to split up the routine into two -- one to compute the final size of the arrays, and the second to fill them in. I might end up doing this, because it is simplest, but it means creating the initial conditions

[Numpy-discussion] f2py with allocatable arrays

2012-07-02 Thread Casey W. Stark
Hi numpy. Does anyone know if f2py supports allocatable arrays, allocated inside fortran subroutines? The old f2py docs seem to indicate that the allocatable array must be created with numpy, and dropped in the module. Here's more background to explain... I have a fortran subroutine that returns