It is square. If so, I will use DMCreateGlobalVector.

Thanks!

Gianluca

On Thu, Jul 16, 2015 at 9:25 AM, Jed Brown <jed@jedbrown.org> wrote:
Gianluca Meneghello <gianmail@gmail.com> writes:

> I need both right and left vectors for use in a SLEPc SVD decomposition; it
> is my understanding that the correct layout is obtained with MatCreateVecs
> and that only the layout for the right vector is created with
> DMCreateGlobalVector.

Do you have a non-square matrix?  If so, is the left vector associated
with a different DM?

> Or I might be wrong and there is actually no difference! If so I will
> use DMCreateGlobalVector
> without any problem

If the system is square, DMCreateGlobalVector should be correct.