On Thu, 25 Oct 2012, Ataollah Mesgarnejad wrote:

> equation_system.write(xdr_file_name.str(), EquationSystems::WRITE_DATA |
>      EquationSystems::WRITE_ADDITIONAL_DATA);
>
> equation_system.read(xdr_file_name.str(), EquationSystems::READ_HEADER |
> EquationSystems::READ_DATA |
> EquationSystems::READ_ADDITIONAL_DATA);
>
> * Am I doing this correctly?

At first glance, yes.

> * Do I need to write the data or can I just write the additional data
> alone? I have no use for the data itself and only need the additional
> vector.

I'm actually not sure.  I don't think anyone's ever tested that use
case, but there's no reason it shouldn't work, so after you've made
sure your code is working with DATA+ADDITIONAL_DATA, try it with
ADDITIONAL_DATA only and send us a bug report if it fails.

> * After the additional vectors are loaded are they going to get distributed
> with ghost values if I added them as a GHOSTED vector when setting the
> equation system up?

Assuming you do the add_vector() before the read(), yes.
---
Roy

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to