[petsc-dev] Creation of snes->vec_func
Jed Brown
jedbrown at mcs.anl.gov
Wed Dec 21 19:11:22 CST 2011
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>
More information about the petsc-dev
mailing list