Thank you very much Lawrence! 


Le mer. 2 déc. 2020 à 16:19, Lawrence Mitchell <wence@gmx.li> a écrit :


> On 2 Dec 2020, at 15:13, Karin&NiKo <niko.karin@gmail.com> wrote:
>
> Dear Firedrakers,
>
> I frequently use the option -log_view with PETSc scripts in order to get flops and timing information. How can I get firedrake to ask PETSc to print this information for me?
> Using the key/value {'log_view':None} is no use in the solver parameters.

You can do

from firedrake import *
from firedrake.petsc import PETSc

PETSc.Log.begin()

# Your code here.

# when you want to view the log
PETSc.Log.view()


Thanks,

Lawrence