Making the extension module

Run F2PY:
f2py -m ext_gridloop -c gridloop.f
Try it from Python:
import ext_gridloop
ext_gridloop.gridloop1(a, self.xcoor, self.ycoor, myfunc,
                       size(self.xcoor), size(self.ycoor))
wrong results; a is not modified!
Reason: the gridloop1 function works on a copy a (because higher-dimensional arrays are stored differently in C/Python and Fortran)

previousnexttable of contents