[petsc-users] Accessing Vector's ghost values

Jed Brown jedbrown at mcs.anl.gov
Fri Feb 24 07:22:38 CST 2012


On Fri, Feb 24, 2012 at 04:43, Mohammad Mirzadeh <mirzadeh at gmail.com> wrote:

> Thanks Bojan. I suppose that would work. Problem arises, however, when the
> actual application numbering matters and you have to preserve it somehow.
> One example, is where you have a library that is currently sequential and a
> lot of functionality is directly based on the data structure used for the
> grid. For example when computing derivatives or performing interpolation
> and so on.


That serial library probably needs the local numbering anyway, if you give
it the global indices, it won't be able to access those locations (at least
not without a translation step that they did not write). It's better to
build the data structure in terms of local indices.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120224/62ea5f7f/attachment.htm>


More information about the petsc-users mailing list