[petsc-users] Subvector on PETSc

Rui Emanuel Ferreira da Silva rui.silva at uam.es
Wed Oct 2 07:26:08 CDT 2013


Hello

I am writing to you to ask some technical problems that I am dealing
with the use of PETSc.

The problem that I am facing is the following: I have defined a vector
in Petsc which was created with VecCreateMPI. After that, I read this
vector from an external file with a PETSc viewer.

So if the initial vector is V with size N, I want to obtain a smaller
vector U with size M, where M<N. I have an array of integers that are
the indexes of V that I want to pass to U.

How can I do this?

Regards



-------------------
Rui Silva
EMTCCM (European Master in Theoretical Chemistry and Computational Modelling)
UAM, Departamento de Química, Módulo 13
CAMPUS http://www.uam.es/departamentos/ciencias/quimica/spline/index.html
-------------------



More information about the petsc-users mailing list