[SciPy-user] [f2py] hide ?

fred fredmfp@gmail....
Thu Apr 26 02:12:02 CDT 2007

Robert Kern a écrit :
> Variables "just sitting there" won't have any effect whatsoever inside the
> FORTRAN subroutine. You would have to pass it in as an argument to essai(); it
> can't be hidden. intent(hide) is for situations where you can derive the value
> from other inputs, like the length of an array.

Ok, let's talk about array now ;-)

The following sample code fails if I use nvx arg in essai(),

Traceback (most recent call last):
  File "./essai.py", line 22, in ?
    a = essai.essai(a, b, KW, nx, ny, nz, nvx)
essai.error: (shape(a,0)==nx) failed for 1st keyword nx

and works fine if not.

What's wrong ?

I'm thinking of issue with memory allocation, but what's going on ?
(wrong arrays dimensions ? arguments order in function call ?)

It must be a stupid error but where ?

Thanks in advance.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: essai.py
Type: text/x-python
Size: 376 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-user/attachments/20070426/f0764efd/attachment-0001.py 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: essai.f
Url: http://projects.scipy.org/pipermail/scipy-user/attachments/20070426/f0764efd/attachment-0001.pl 

More information about the SciPy-user mailing list