[petsc-dev] PCGAMG: set default type (AGG); PCSetUp_GAMG crashes if not set

Jed Brown jedbrown at mcs.anl.gov
Wed Oct 30 09:49:36 CDT 2013


Peter Brune <prbrune at gmail.com> writes:

> It might be best to just pair things.  Prefix matching sounds like a recipe
> for ripping one's hair out over minutiae.

Let's ask petsc-dev.

All, how should we deal with people forgetting to clear dynamic
functions in XXDestroy_YY?

>
> - Peter
>
>
> On Wed, Oct 30, 2013 at 9:20 AM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>
>> Alternatively, we could have a PetscObject function that strips all
>> functions that match a prefix like PCGAMGAgg* or PCGAMG*.
>>
>> Peter Brune <prbrune at gmail.com> writes:
>>
>> > As I think I said on bitbucket (they're having a massive outage,
>> > apparently), I'm going to create a branch where I make sure that each
>> > composition is paired, because while it looks like this rule was followed
>> > in TS, it certainly isn't followed anywhere else, and therefore didn't
>> > appear to be a convention.
>> >
>> > - Peter
>> >
>> >
>> > On Wed, Oct 30, 2013 at 8:17 AM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>> >
>> >> Mark Adams <mfadams at lbl.gov> writes:
>> >>
>> >> > I can't read bitbucket anymore.
>> >> >
>> >> > How can I undo:
>> >> >
>> >> >   ierr =
>> >> >
>> >>
>> PetscObjectComposeFunction((PetscObject)pc,"PCSetCoordinates_C",PCSetCoordinates_AGG);CHKERRQ(ierr);
>> >>
>> >> ierr =
>> >>
>> PetscObjectComposeFunction((PetscObject)pc,"PCSetCoordinates_C",NULL);CHKERRQ(ierr);
>> >>
>> >> just like PCDestroy_FieldSplit, KSPDestroy_GMRES, and hopefully all
>> >> subtype destructors.
>> >>
>> >> > and I'm thinking we can sort of deprecated the PCSetCoordinates stuff.
>> >> >  Lets get ex54 working with PCSetCoordinates and remove it from all
>> other
>> >> > tests.  Doing it the right way, with CreateRigidBodyModes solves
>> Peter's
>> >> > desire of getting it out of GAMG.  If a user of PCSetCoordinates
>> breaks,
>> >> > when the change something, then we just tell them to update to the new
>> >> > regime.  Old users, like Sanjay G, do not need to be bothered.
>> >>
>> >> Sounds fine to me.
>> >>
>>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20131030/947b51e4/attachment.sig>


More information about the petsc-dev mailing list