<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Fri, Dec 21, 2018 at 2:08 PM Randall Mackie via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The attached simple test program (when compiled in debug mode with gfortran and mpich) throws a lot of valgrind errors on the call to PetscViewerAsciiOpen, as well as the call to MPI_Comm_split.<br>
<br>
I can’t figure out if it is a problem in the code, or a bug somewhere else.<br></blockquote><div><br></div><div>Those are all just memory leaks. I believe most will go away if you call PetscViewDestroy().</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">
Any advice is appreciated.<br>
<br>
Thanks<br>
<br>
Randy M.<br>
<br>
<br>
<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><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.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>