<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>thanks for the swift reply. This didn't give any output.</div>

<div> 
<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Dienstag, 24. Dezember 2019 um 23:56 Uhr<br/>
<b>Von:</b> "Mark Adams" <mfadams@lbl.gov><br/>
<b>An:</b> "Marius Buerkle" <mbuerkle@web.de><br/>
<b>Cc:</b> "petsc-usersmcs.anl.gov" <petsc-users@mcs.anl.gov><br/>
<b>Betreff:</b> Re: [petsc-users] possible memory leak</div>

<div name="quoted-content">
<div>Try running with -malloc_debug
<div> </div>

<div>This should print out where unfreed memory was allocated. See what pops up.</div>

<div> </div>

<div>Mark</div>
</div>
 

<div class="gmail_quote">
<div class="gmail_attr">On Tue, Dec 24, 2019 at 2:27 AM Marius Buerkle <<a href="mailto:mbuerkle@web.de" onclick="parent.window.location.href='mailto:mbuerkle@web.de'; return false;" target="_blank">mbuerkle@web.de</a>> wrote:</div>

<blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<p>Hi,</p>

<p> </p>

<p>In my code I create and destroy during one run a lot of MPIAIJ matrices and it seems that not all memory is freed when I destroy the matrices. Moreover, it looks like the amount of “disappearing” memory increases with the number of processes. I am not so sure if I am doing something wrong or if it is really a memory leak. I have attached a simple reproducer.</p>

<p> </p>

<p>Best,</p>

<p>Marius</p>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div></div></body></html>