[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
request for advice cleaning up SNES
- To: petsc-dev@xxxxxxxxxxx
- Subject: request for advice cleaning up SNES
- From: "Lisandro Dalcin" <dalcinl@xxxxxxxxx>
- Date: Mon, 3 Sep 2007 17:29:04 -0300
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ABcVeFtmWmN41yQ4mREtZDcTZJYLtlGG6HMTtoaMwT8j/Aw8gtqkZI4DSe5LaDJwo+eceDgVM7kvAvHPMwxf5+S/EH/fYgvj6CYEXWh2iUmH4HjZKUdbXcBOMkG5akKM7grPZeEBMdYUWY+NKT1hZge+5kGjg0WXdBLCRhivwxE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=G4eb9jtdfFpWoFybMqrdBTd50RYvHU7bnz0rn6cwu8gKyBzuNKwKGn7xofWvSU8l6VaVFvbaPekot4bPZ3Pu4p6nuef+dM1PtTFdwa83ihSHqUaHvbs4l/utgGj6R4o6sQnqA7hi9sZYXvmjAQIkr/PQTHD1ZJEOkengHBLGaJc=
- Reply-to: petsc-dev@xxxxxxxxxxx
- Sender: owner-petsc-dev@xxxxxxxxxxx
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?
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.
--
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