On Tue, 11 Dec 2012, Ataollah Mesgarnejad wrote:

> If I remove READ_HEADER read will try to load a vector from another
> system to this system and fails because the number of DOFs are
> different.

Yes - that would only have worked if you'd already manually
initialized every system and variable to match the solution file and
then init()ed it.

If that's not possible then maybe you really will need to manually
upgrade the read() results to a GHOSTED vector.  That would mean
NumericVector::build(), init() of that vector with the send_list()
from your DofMap and the n,n_local sizes from the vector you're
replacing, and finally old_vec.swap(new_vec).

You'll finally want old_vec.close() to communicate the ghost values,
and let the new_vec get deleted by the AutoPtr.
---
Roy

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to