<div class="gmail_quote">On Wed, Dec 21, 2011 at 19:06, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":19z"> 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.</div></blockquote></div><br><div>
No, each VI solver would</div><div><br></div><div>PetscObjectComposeFunctionDynamic((PetscObject)snes,"SNESVISetVariableBounds_C","SNESVISetVariableBounds_All",SNESVISetVariableBounds_All);</div><div><br>
</div><div>then SNESVISetVariableBounds would attempt to call this dynamically. If it failed, it would SNESSetType(snes,SNESVIRS) and PetscUseMethod().</div>