[petsc-dev] PetscLogView with PETSC_VIEWER_ASCII_INDEX et al.

Jed Brown jed at jedbrown.org
Thu Jan 14 13:54:57 CST 2016


It turns out that if someone puts

  PetscViewerSetFormat(PETSC_VIEWER_STDOUT_WORLD,PETSC_VIEWER_ASCII_INDEX);

in their code and forgets to reset the format before PetscFinalize, then
-log_summary will not print.  This was easy enough for me to figure out
with a debugger, but totally perplexing for the application.

We can patch this specific case easily enough, but can we address the
general case where only certain formats should be significant for
different kinds of output?  Opinions?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20160114/57894256/attachment.sig>


More information about the petsc-dev mailing list