<div dir="ltr">I can attach my containers (3!) after this call.<div>Actually better structure in my code but this should be fixed.</div><div>Thanks</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 1, 2022 at 3:06 PM Barry Smith <<a href="mailto:bsmith@petsc.dev" target="_blank">bsmith@petsc.dev</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"><div><div><br></div>  These might not need to be deleted but could possibly be moved over<div><br></div><div><div>ierr = PetscFunctionListDestroy(&((PetscObject)A)->qlist);CHKERRQ(ierr);</div><div>  ierr = PetscObjectListDestroy(&((PetscObject)A)->olist);CHKERRQ(ierr);</div><div>  ierr = PetscComposedQuantitiesDestroy((PetscObject)A);CHKERRQ(ierr);</div><div><br></div><div>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><blockquote type="cite"><div>On Mar 1, 2022, at 2:47 PM, Junchao Zhang <<a href="mailto:junchao.zhang@gmail.com" target="_blank">junchao.zhang@gmail.com</a>> wrote:</div><br><div><div dir="ltr">I realized this problem but did not expect someone would run into it :)<div>Let me think again.<br><div><br clear="all"><div><div dir="ltr"><div dir="ltr">--Junchao Zhang</div></div></div><br></div></div></div><br><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" target="_blank">mfadams@lbl.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"><div dir="ltr">I have a container attached to my matrix and it seems to go away after a call to MatSetPreallocationCOO.<div>Does that sound plausible?</div></div>
</blockquote></div>
</div></blockquote></div><br></div></div></blockquote></div>