On Wed, Dec 21, 2011 at 19:06, Barry Smith <bsmith at mcs.anl.gov> wrote:

>  I don't get it. Won't  that dynamic function have the ugly hardwired list
> in it?   For example SNESSolverISVI(SNES,PetscBool*); which will know which
> are vi solvers.
>

No, each VI solver would

PetscObjectComposeFunctionDynamic((PetscObject)snes,"SNESVISetVariableBounds_C","SNESVISetVariableBounds_All",SNESVISetVariableBounds_All);

then SNESVISetVariableBounds would attempt to call this dynamically. If it
failed, it would SNESSetType(snes,SNESVIRS) and PetscUseMethod().
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20111221/460033ab/attachment.html>

Reply via email to