request for advice cleaning up SNES

Matthew Knepley knepley at gmail.com
Mon Sep 3 15:35:35 CDT 2007


On 9/3/07, Lisandro Dalcin <dalcinl at gmail.com> wrote:
> In de process of cleaning up SNES, I am not sure about the management
> of afine (rhs) vector. So the question is:
>
> If the user call:
>
> SNESSolve(PETSC_NULL, x)
>
> should any previously set (VecSetRhs) afine vector be destroyed/zeroed
> or should it not be touched in any way?

I think it should be destroyed.

> BTW, I believe in the past you had and next removed
> KSPSetRhs()/KSPSetSolution() . Should this approach be also followed
> in SNES? IMHO, the final interface would be simpler and less
> error-prone.

Not sure. Why are these there?

  Matt

> --
> 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
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which
their experiments lead.
-- Norbert Wiener




More information about the petsc-dev mailing list