Re: [f2py] output
Benjamin Kutz <[email protected]> Tue, 24 Aug 2010 14:29:52 +0200
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Pearu, how does your sugestion work? I've tried to call an instance of a class, which calls the wrapped Fortran code and pipe the std.out of that constuct. But that doesn`t work. Can you help me? Greetings Benjamin Am 06.08.2010 11:06, schrieb Pearu Peterson: > 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 > > _______________________________________________ > f2py-users mailing list > f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] > http://cens.ioc.ee/mailman/listinfo/f2py-users >