On Mon, 30 Nov 2009, Rahul Sampath wrote:

> Could someone please tell me how to access the ghost values (i.e. dof
> values shared between processors) from a NumericVector sharing the
> same parallel layout as the system.rhs vector.

I'm afraid the default type for those vectors, PARALLEL, doesn't have
any local storage for ghost values.  You'll either need to use a
SERIAL or GHOSTED type vector instead, or localize your vector into
one of those types.

Hmm... I just noticed that everything we create with
System::add_vector() gets created with PARALLEL type.  That's exactly
what I want in my applications, but I see now that it might be
suboptimal for other people.  You can reinitialize one of those
vectors as SERIAL or GHOSTED and the new type will be preserved
through projections, but should we add an optional argument for people
to add non-PARALLEL vectors in the first place?
---
Roy

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to