Re: [f2py] output
Pearu Peterson <[email protected]> Fri, 6 Aug 2010 12:06:36 +0300
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Aug 6, 2010 at 10:04 AM, Benjamin Kutz <[email protected]> wrote: > Good morning everyone, > > I've wrapped a fortran code and call this code within python with the > following command: > > variable = wrappedcode.wrappedsubroutine(variable) > > This routine prints on the standart out. I want to pipe this output in a > file. > How can I manage this? Afaik, it is not possible from python. A workaround could be to run fortran code from another python session which output, including the output of the Fortran routine, can be piped. Regards, Pearu