<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Apr 5, 2018 at 6:15 AM, Klaij, Christiaan <span dir="ltr"><<a href="mailto:C.Klaij@marin.nl" target="_blank">C.Klaij@marin.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Barry,<br>
<br>
I'm still trying to use petsc's nested logging with our code. I<br>
have it working for 3.8.3 with the command line option, for<br>
example:<br>
<br>
mpirun -n 3 ./refresco -log_view :performance.xml:ascii_xml<br>
<br>
This gives the expected performance.xml file. How to get the same<br>
without command line options? So far I have:<br>
<br>
CALL PetscLogDefaultBegin(ierr)<br>
...<br>
CALL PetscViewerASCIIOpen(MPI_COMM_<wbr>WORLD,'performance.xml',<wbr>viewer,ierr)<br>
CALL PetscLogView(viewer,ierr)<br>
<br>
which gives the regular log in the performance.xml file.<br>
<br>
I guess I should replace PetscLogDefaultBegin by<br>
PetscLogNestedBegin as stated in the manual page of PetscLogView.<br>
<br>
But there's no manual page for PetscLogNestedBegin and I didn't<br>
find anything like PetscViewerASCIIOpenXML either.<br></blockquote><div><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-master/docs/manualpages/Profiling/PetscLogView.html">http://www.mcs.anl.gov/petsc/petsc-master/docs/manualpages/Profiling/PetscLogView.html</a><br></div><div><br></div><div>You need to push the ASCII_XML format before viewing.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Chris<br>
<br>
<br>
dr. ir. Christiaan Klaij | Senior Researcher | Research & Development<br>
MARIN | T +31 317 49 33 44 | mailto:<a href="mailto:C.Klaij@marin.nl">C.Klaij@marin.nl</a> | <a href="http://www.marin.nl" rel="noreferrer" target="_blank">http://www.marin.nl</a><br>
<br>
MARIN news: <a href="http://www.marin.nl/web/News/News-items/Kom-zaterdag-10-november-naar-de-open-dag-in-Wageningen.htm" rel="noreferrer" target="_blank">http://www.marin.nl/web/News/<wbr>News-items/Kom-zaterdag-10-<wbr>november-naar-de-open-dag-in-<wbr>Wageningen.htm</a><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.caam.rice.edu/~mk51/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div>
</div></div>