The documentation in equation_systems.h explains this:

   /**
    * Write the systems to disk using the XDR data format.
    * This format allows for machine-independent binary output.
    *
    * Set the writing properties using the EquationSystems::WriteFlags
    * enumeration. Set which sections to write out by bitwise OR'ing
    * the enumeration values. Write everything by setting write_flags to:
    * (WRITE_DATA | WRITE_ADDITIONAL_DATA)
    *
    * Note that the solution data can be omitted by calling
    * this routine with WRITE_DATA omitted in the write_flags argument.
    *
    * If XdrMODE is omitted, it will be inferred as WRITE for filenames
    * containing .xda or as ENCODE for filenames containing .xdr
    */

i.e. for binary, set the XdrMODE argument to ENCODE, or make sure that 
the string filename ends in ".xdr"





On 12/02/2012 07:32 PM, Ataollah Mesgarnejad wrote:
> Dear all,
>
> I have a questions about XDR IO. When I write an XDR file using something 
> like:
>
> equation_system.write(xdr_file_name.str(), EquationSystems::WRITE_DATA |
>                                                                  
> EquationSystems::WRITE_ADDITIONAL_DATA);
>
> does it write a binary/ASCII file?  And how can I make it write binary files?
>
> Thanks,
> Ata
> ------------------------------------------------------------------------------
> Keep yourself connected to Go Parallel:
> BUILD Helping you discover the best ways to construct your parallel projects.
> http://goparallel.sourceforge.net
> _______________________________________________
> Libmesh-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libmesh-users


------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
BUILD Helping you discover the best ways to construct your parallel projects.
http://goparallel.sourceforge.net
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to