On Wed, 10 Oct 2012, David Knezevic wrote:

> On 10/10/2012 11:25 AM, Ataollah Mesgarnejad wrote:
>> Dear all,
>>
>> A quick question: is the added vectors (from 
>> LinearImplicitSystem::add_vector() for example) get written in the XDR files 
>> or do I need to do a swap with a variable ?
>
> Not sure I understand what you mean, add_vector adds a NumericVector to
> a system. You can write the additional vectors to disk later on by doing
>
> equation_systems.write("filename.xdr", EquationSystems::WRITE_DATA |
> EquationSystems::WRITE_ADDITIONAL_DATA);

One warning - you currently need to make sure that the
WRITE_ADDITIONAL_DATA flag's presence or absence is consistent between
your write() and your read(), or the read will scream and die and give
you an utterly unhelpful error message.

In hindsight the amount of time it would have taken me to fix this
problem would have been less than the amount of time I've wasted being
bitten by this problem, however I'm not sure when/if I'll get time to
fix it now.
---
Roy

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to