<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div> These might not need to be deleted but could possibly be moved over<div class=""><br class=""></div><div class=""><div class="">ierr = PetscFunctionListDestroy(&((PetscObject)A)->qlist);CHKERRQ(ierr);</div><div class=""> ierr = PetscObjectListDestroy(&((PetscObject)A)->olist);CHKERRQ(ierr);</div><div class=""> ierr = PetscComposedQuantitiesDestroy((PetscObject)A);CHKERRQ(ierr);</div><div class=""><br class=""></div><div class="">also MatHeaderReplace() exists. I struggle to understand the exact differences and why both exist but I think there are some subtle reasons why there are both and don't know if they can be merged.</div><div><br class=""><blockquote type="cite" class=""><div class="">On Mar 1, 2022, at 2:47 PM, Junchao Zhang <<a href="mailto:junchao.zhang@gmail.com" class="">junchao.zhang@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I realized this problem but did not expect someone would run into it :)<div class="">Let me think again.<br class=""><div class=""><br clear="all" class=""><div class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class="">--Junchao Zhang</div></div></div><br class=""></div></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 1, 2022 at 1:33 PM Mark Adams <<a href="mailto:mfadams@lbl.gov" class="">mfadams@lbl.gov</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class="">I have a container attached to my matrix and it seems to go away after a call to MatSetPreallocationCOO.<div class="">Does that sound plausible?</div></div>
</blockquote></div>
</div></blockquote></div><br class=""></div></body></html>