Jed, In the petscconf.h I have #ifndef PETSC_USE_LOG #define PETSC_USE_LOG 1 #endif so I guess that is not the problem. I run ex50: I attached the output. It does prints the summary. The I guess there is something wrong with my code. I call mpi_init before petsc_initialize and then I finalize everything with petsc_finalize. I do not believe I added any other command that could turn off the log_summary output. Thanks, Michele On Mon, 2015-06-08 at 12:02 -0600, Jed Brown wrote:
Michele Rosso <[email protected]> writes:
Is there any external software I should link at compile time to allow PETSc to provide log infos? Also, is there any define in petscconf.h that controls profiling?
There is PETSC_USE_LOG, but that should always be on, in which case everything is run-time rather than compile-time. When you run a PETSc example, does the log_summary correctly contain events? Is it possible that your code is turning off events somewhere?