[petsc-dev] PetscObjectStateQuery now PetscObjectStateGet private

Barry Smith bsmith at mcs.anl.gov
Mon Sep 23 11:01:54 CDT 2013


On Sep 23, 2013, at 10:33 AM, Patrick Lacasse <patrick.m.lacasse at gmail.com> wrote:

> Hi,
> 
>    We use PetscObjectStateQuery as a way to know if our mat has changed.
> Now that it is private (and renamed), is there a better way to do this?
> Our code is really complicated and it would be very hard to maintain such a (redundant) state in our side.
> We mainly use this knowledge to give it to KSPSetOperator, would it be nice that KSPSetOperator just guess SAME_PRECONDITIONER when the state (and the mat) is the same?

  Patrick,

I've added this to our issues https://bitbucket.org/petsc/petsc/issue/50/eliminate-the-need-for-matstructure-flag   We agree it would be nice to eliminate the need to handle this manually.

   Barry



> 
> Patrick Lacasse




More information about the petsc-dev mailing list