[Matrix-SIG] Fortran-to-python-interface-generator: looking for opinions
Paul F. Dubois
dubois1@llnl.gov
Sat, 28 Aug 1999 21:10:23 -0700
> Oh, OK. Sorry for the misunderstanding. I thought this might be a
situation
> in which the Fortran code would result in automatic allocation by the
> interface. The more things you can stop things from allocating memory so
you
> can do it yourself the better your life is.
>
No, you didn't misunderstand. If you declare a temporary array, the
interface does the allocation/deallocation of the array rather than force
the user to supply it.
If you are calling something in a loop and it doesn't do a lot of work and a
bunch of other ifs, it might be important not to do this.
However, I disagree with the notion that the more things I can do myself the
better my life is. (:->.
It is worth noting that nothing says you cannot build two Python interfaces
to the same Fortran routine. Just put them in different modules, say module
fastbutclumsytouse and module normal.