[petsc-dev] Creation of snes->vec_func

Barry Smith bsmith at mcs.anl.gov
Wed Dec 21 16:47:11 CST 2011


On Dec 21, 2011, at 4:39 PM, Jed Brown wrote:

> On Wed, Dec 21, 2011 at 16:35, Barry Smith <bsmith at mcs.anl.gov> wrote:
>  If it did not set the type here then the user would always have to both set the bounds and set a vi solver. That seemed stupid to me (people will forget to set a vi solver). I would like to leave this the same.
> 
> What if they use a different VI solver (VIRSAUG or VISS)? Maybe it should be a PetscUseMethod()?

   You are asking. "What if they already set the VISS solver, do you really want to overwrite it"?   

   If that is your question then my response is "good point, if it is already set to a VI solver then it should not be changed, but if it is not set to a VI solver then it should be set to the vi solver."

   Barry





More information about the petsc-dev mailing list