[petsc-dev] PCGAMG: set default type (AGG); PCSetUp_GAMG crashes if not set
Jed Brown
jedbrown at mcs.anl.gov
Wed Oct 30 10:49:16 CDT 2013
Matthew Knepley <knepley at gmail.com> writes:
> So the rationale for this is when we change backend types?
Yes, when we changed implementations, we shouldn't be contaminated by
whatever came before, but if the user does
PCSetType(pc,PCASM);
PetscObjectComposeFunction(pc,"TheirFunction",TheirFunction);
PCSetType(pc,PCGAMG);
Their function should not be removed. Thus the thought of clearing
based on a prefix.
> Is it worth anything more than a convention? If so, what about just having
> a count in PetscObject that gets checked in the teardown process.
1. How do we check the convention? It's very error-prone at present.
2. See above for why a simple count is not good enough.
-------------- 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/4bcffd9c/attachment.sig>
More information about the petsc-dev
mailing list