[petsc-dev] MatSetPreallocationCOO remove attached objects?

Barry Smith bsmith at petsc.dev
Tue Mar 1 13:46:34 CST 2022


MatSetPreallocationCOO_SeqAIJ and MatSetPreallocationCOO_MPIAIJKokkos use MatHeaderMerge() that might lose some attached containers. It could be that MatHeaderMerge() needs to be revisited to ensure attached objects are not lost.

 Barry


> On Mar 1, 2022, at 2:32 PM, Mark Adams <mfadams at lbl.gov> wrote:
> 
> I have a container attached to my matrix and it seems to go away after a call to MatSetPreallocationCOO.
> Does that sound plausible?



More information about the petsc-dev mailing list