Re: [f2py] Callbacks return 0
Pearu Peterson <[email protected]> Fri, 3 May 2013 11:09:19 +0300
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <CAPpwKcysANj1F1L9-N1L=uph7+dDpmKHBS1ZwgBrYQN3nVvW+g@mail.gmail.com> |
Yes, I think it is compiler dependent. Default compiler used to be g77 but now it is gfortran. Different compilers can have different defaults to interpreting incomplete codes, this could explain what you have observed. Pearu On Fri, May 3, 2013 at 11:05 AM, Elias Assmann <[email protected]> wrote: > On 05/01/2013 07:27 AM, Pearu Peterson wrote: >> >> In Fortran code, you'll need also the following statement: >> >> REAL*8 FUN >> >> and then the example works. > > > Thank you, that does work. Now, I can see that my question looks pretty > stupid. But the example was taken literally from > <http://cens.ioc.ee/projects/f2py2e/usersguide/index.html#call-back-arguments>, > so I did not doubt the code. Is this an outdated version of the user's > guide? Or is the problem maybe compiler dependent? > > Thanks anyhow, > > Elias >