assembleVectorComplete

Randall Mackie randy at geosystem.us
Sun Aug 19 14:30:52 CDT 2007


Normally, one uses ghosted values to compute a function on the locally
owned part of the grid. I have a slightly different need where on the
locally owned part of the grid, I want to compute some local quantities
AS WELL as the ghost quantities, if that's where they wind up.

Can I do the following:

call VecGetArray(localVec....)

set the values into the vector I want, including any ghost points that
are necessary

then

call assembleVectorComplete(globalVec,localVec, INSERT_VALUES)

????

The alternate way I can see would be to zero out a global vector,
then make calls to DALocalToGlobalBegin and DALocalToGlobalEnd,
which ADDS in the ghost values.

Thanks in advance.

Randy

-- 
Randall Mackie
GSY-USA, Inc.
PMB# 643
2261 Market St.,
San Francisco, CA 94114-1600
Tel (415) 469-8649
Fax (415) 469-5044

California Registered Geophysicist
License No. GP 1034




More information about the petsc-users mailing list