Interlaced vectors.
Lisandro Dalcin
dalcinl at gmail.com
Wed Jul 4 16:12:38 CDT 2007
On 7/4/07, billy at dem.uminho.pt <billy at dem.uminho.pt> wrote:
> Hi,
>
> I have a velocity vector (u,v,w) with 3 updates. Is there an efficient way to
> interlace the 3 vectors into 1 update without creating a new data structure?
Look at VecStrideScatter, but not sure exactly what you need. Can
elaborate a bit more? What are x,u,v? Sepparate PETSc Vec's, or just a
Vec with consecutive entries?
--
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-users
mailing list