SNESSetUp() and matrix-free options

Barry Smith bsmith at
Wed May 6 15:25:43 CDT 2009


      The checking of the options can be moved to SNESSetFromOptions()  
that then set some flag in the snes object;
but the actual action of MatCreateSNESMF() etc must continue to take  
place in the setup.

     Feel free to change if you like,


On May 6, 2009, at 3:15 PM, Lisandro Dalcin wrote:

> Currently, -snes_mf* options are handled in SNESSetUp()... I think all
> you will agree that the proper place for them is
> SNESSetFromOptions()... However, perhaps I'm missing something and
> things are like that for some reason... In that case I would like to
> know the reason and perhaps I could fix this...
> -- 
> Lisandro Dalcín
> ---------------
> Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
> Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
> Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
> PTLC - Güemes 3450, (3000) Santa Fe, Argentina
> Tel/Fax: +54-(0)342-451.1594

More information about the petsc-dev mailing list