dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #12879
Re: NEW XML MESH
2009/4/2 Anders Logg <logg@xxxxxxxxx>:
> On Thu, Apr 02, 2009 at 05:30:38PM -0400, Shawn Walker wrote:
>> ok. So I should be able to modify things and not mess anything up. Is
>> the current dolfin repository using the NewXML... code?
>>
>> - Shawn
>
> The code is there but is only used for plotting. The plot() command
> from C++ writes XML files in the new format and calls Viper.
If you want to use/test the new xml-style, open a file the following way (C++)
File f("somefile.xml", true);
f << some_data; // or
f >> some_data;
In Python, do
f = File("somefile.xml")
f.set_new_xml_style()
f >> etc...
Ola
>
> --
> Anders
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAknVLz4ACgkQTuwUCDsYZdGStgCcDN4pe9oclZ1nA+BG2C7ky2n9
> RsIAnRwB85+1Cqg8BcUmJxJm7YKsObbe
> =xgHY
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>
>
--
Ola Skavhaug
References