output redirection

Asked by Dupront

Hello,

 In python the command "summary()" sent a string to a terminal.

 Is there a way to get this string or to redirect the output to a file ?

Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Dupront
Solved:
Last query:
Last reply:
Revision history for this message
Anders Logg (logg) said :
#1

On Sat, Feb 25, 2012 at 08:45:42PM -0000, Dupront wrote:
> New question #188862 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/188862
>
> Hello,
>
> In python the command "summary()" sent a string to a terminal.
>
> Is there a way to get this string or to redirect the output to a file ?
>
> Thank you

I suggest using the function timing() to get the timing for the
specific tasks you are interested in and then printing it or storing
it in any way you like.

--
Anders

Revision history for this message
Dupront (michel-dupront) said :
#2

Yes ! perfect !!

Thank you very much.