Randy, It is not clear to me what you want.
On Sun, 19 Aug 2007, Randall Mackie wrote: > 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) This function is for the mesh stuff, I do not think it is usable in this circumstance. > > ???? > > 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. If you are doing finite elements then likely this is exactly what you want. Barry > > Thanks in advance. > > Randy > >
