[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Remote Distributed Vector Elements?



On 7/23/07, Tim Stitt <timothy.stitt@xxxxxxxx> wrote:
Hi all,

I was just wondering if anyone can suggest the most efficient method for
obtaining any given element in a distributed vector? If I understand
correctly VecGetValues() only returns local elements? I need to access
non-local elements also. What is the best approach?

You create a VecScatter with these indices into a local vector, and then get the array from that.

 Matt

Thanks in advance,

Tim.

--
Dr. Timothy Stitt <timothy_dot_stitt_at_ichec.ie>
HPC Application Consultant - ICHEC (www.ichec.ie)

Dublin Institute for Advanced Studies
5 Merrion Square - Dublin 2 - Ireland

+353-1-6621333 (tel) / +353-1-6621477 (fax) / +353-874195427 (mobile)




--
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