Lisandro Dalcin dalcinl at
Sat May 10 16:17:49 CDT 2008

Depending on what you need to actually do with your multiple vectors,
PETSc do have a 'Vecs' (note de final 's') wich is just an array with
Vec items... However, as you are working with non-native data, perhaps
this will not be useful.. Take a look...

On 5/8/08, Boyce Griffith <griffith at> wrote:
> Hi, Folks --
>  I'm pretty sure this has been discussed in the list previously, but I'm
> having trouble digging up the thread in the archive, so apologies in
> advance...
>  I need to solve some nonlinear equations that involve both PETSc Vecs as
> well as data that is stored in a non-PETSc-native format, and I was
> wondering if someone happens to have a freely available implementation of a
> "VecMultiVec" --- a vector which contains multiple Vec objects.  I think it
> should be fairly straightforward to implement such a beast, but I thought
> I'd ask before doing it myself.
>  Thanks,
>  -- Boyce

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