[petsc-users] parallel vector of integers

Matthew Knepley knepley at gmail.com
Mon Oct 17 16:05:22 CDT 2011


On Mon, Oct 17, 2011 at 4:03 PM, Dominik Szczerba <dominik at itis.ethz.ch>wrote:

> Vec seems to be meant for only real numbers. I need to have a parallel
> vector containing integers. Most of them are indices, but some of them would
> be arbitrary. Questions:
>
> 1) Is 'IS' supposed to be a parallel/distributed vector of indices? Syntax
> to use it is very different from that of Vec. E.g. I see functions to query
> global and local size, but can not find functions to specify them. How to
> scatter/gather such objects? Scatter seems only for Vec's.
>
> 2) How about arbitrary parallel vectors of integers?
>

Right now, PETSc just does not have this. There is an ongoing discussion
about implementation.

For now, putting integers in a Vec is the best option.

    Matt


> Many thanks for any pointers,
> Dominik
>
-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111017/2e758610/attachment-0001.htm>


More information about the petsc-users mailing list