[petsc-dev] PetscContainerSetPointer

Mark Adams mfadams at lbl.gov
Mon Aug 10 15:27:50 CDT 2020

I had some problems giving a container an PETSc object so I wrapped it in a
I forget what problem I had. Maybe ISColoringDestroy can't take a void*.
I'd like to check if I was just missing something.
Should something like this work?

    ISColoring c;
    ierr = PetscContainerSetPointer(container,(void*)c);CHKERRQ(ierr);
    ierr =
PetscContainerSetUserDestroy(container, ISColoringDestroy);CHKERRQ(ierr);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20200810/60dab9a4/attachment.html>

More information about the petsc-dev mailing list