[f2py] f2py Arrays and Fortran functions
Leon Adams <[email protected]>
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I am new to f2py and am having some difficulties with array operation. Here is my design difficulties: Using python as a glue, I initialize my problem. This involves generating a series of arrays and matrices. I pass an array and two matrices to FORTRAN and return an augmented matrix like so: Python A1[x], A2[x,y] A2[x,z] pass to FORTRAN fn(A1,A2,A3) with intent inout A3 in FORTRAN I have a series of subroutines and functions to preform my numeric calculations FORTRAN subroutine sub(A1,A2,A3,x,y,z) calculations using A1,A2,A3,x,y,z call function using data passed from python as in: function fun(A1,...x,y) And here is where my problems start. FORTRAN does not like passing of Arrays. Solutions I thought of was to make the input data from python GLOBAL in scope in FORTRAN, but I haven't found any documentation on how to acheive this either with COMMON or MODULES viz a viz F2PY. Any suggestion would be appreciated. Thanks in advance _______________________________________________ f2py-users mailing list f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] http://cens.ioc.ee/mailman/listinfo/f2py-users