[petsc-users] Weird behavior for log_summary

Michele Rosso mrosso at uci.edu
Mon Jun 8 13:58:49 CDT 2015


Ok, I will go step by step and see what is wrong.
Just to make sure: if I initialize with mpi_init and then call
petscinitialize and finally petscfinalize without calling mpi_finalize,
petsc should
still print the output of log_summary, correct?

Michele

On Mon, 2015-06-08 at 12:54 -0600, Jed Brown wrote:

> Michele Rosso <mrosso at uci.edu> writes:
> 
> > 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. 
> 
> Uh, there is no petsc_finalize (it's spelled PetscFinalize), but
> remember that it doesn't finalize MPI unless PetscInitialize called
> MPI_Init.
> 
> > I do not believe I added any other command that could turn off the
> > log_summary output.
> 
> Then incrementally figure out what is different between your code and
> the example.  Or use a debugger to track down the difference.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150608/d96b02d2/attachment-0001.html>


More information about the petsc-users mailing list