[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: request for advice cleaning up SNES
- To: petsc-dev@xxxxxxxxxxx
- Subject: Re: request for advice cleaning up SNES
- From: "Matthew Knepley" <knepley@xxxxxxxxx>
- Date: Mon, 3 Sep 2007 15:35:35 -0500
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LOq3+VN2BuzRceOle2+oo2R2MYr9Q+nS7dBZ/1Epij9Wxq/2JT7LdlO0kZDZNTgxOM4CAG90Tmp/wXsjGKnc4duy3qgFejHB7NaOR0oDu4qbXj2IXyRv61OVQ2fCUE2m/gCfBuLzQ1ArkUrDNrw0rzq8+aKvgo1ceZSFQjtzKLM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=l+7yEKz7zPw3Ek+xJDh1TASpEoQlm5qH9R+90c3drpolk1n+5M8FuMGYMldP/7KBr5iLaGaQxpIp+wx0wPwlj4s82kjj27f/D586MMD41q3n37vKIASwe9vH49DR/mm++bpabb284Sqjci8h90YObeWRP4ZkCqyDQeS4WL5zSyg=
- In-reply-to: <e7ba66e40709031329p651bc7al3f7de5b74e75e5b0@mail.gmail.com>
- References: <e7ba66e40709031329p651bc7al3f7de5b74e75e5b0@mail.gmail.com>
- Reply-to: petsc-dev@xxxxxxxxxxx
- Sender: owner-petsc-dev@xxxxxxxxxxx
On 9/3/07, Lisandro Dalcin <dalcinl@xxxxxxxxx> 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