parallel ghosted vectors
Matthew Knepley
knepley at gmail.com
Sat Jun 13 15:50:39 CDT 2009
On Sat, Jun 13, 2009 at 2:56 PM, <irfan.khan at gatech.edu> wrote:
> Hi
> My code makes use of parallel ghosted vectors to transfer data between
> fluid and solid calculations. I am now trying to model large deformations in
> solid where the solid may cross several fluid subdomains. This essentially
> means that the entries for the parallel ghosted vectors would change their
> owning process.
>
> For instance, in case of 2 processes as shown below
> Process : Entries
> 0 : 0-n
> 1 : n+1-m
>
> some entries (i,i+1....i+l) can move from process 0 to process 1 at some
> time t.
>
> Is there a way to handled such parallel ghosted vectors without destroying
> the old and recreating a new parallel ghosted vector with updated entries?
No, the right way to do this is recreate the Vec with the new size, scatter
from the old Vec, and destroy the old Vec.
Matt
>
> Thank you
> Irfan
> Graduate Research Assistant
> G.W. Woodruff School of Mechanical Engineering
> Georgia Institute of Technology
> Atlanta, GA.
>
--
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/20090613/e9a84c12/attachment.htm>
More information about the petsc-users
mailing list