Dear libMesh team,

In my application, I write the results to two files using:

mesh.write("mesh.xdr");
systems.write("systems.xdr",libMeshEnums::WRITE,EquationSystems::WRITE_DATA|EquationSystems::WRITE_ADDITIONAL_DATA);

Then, in a different program, I read in these results using:

Mesh mesh(3);
mesh.read("mesh.xdr",NULL,true);
EquationSystems systems(mesh);
systems.read("systems.xdr",libMeshEnums::READ,EquationSystems::READ_DATA|EquationSystems::READ_ADDITIONAL_DATA|EquationSystems::READ_HEADER);

This used to work well.  However, I now updated to the svn head 
version (before that, I had a version that was several months old). 
When I now read in results that have been written with the old 
version, I get completely wrong results.  If I re-run the simulation 
and then read in the result, everything is fine again.  Hence, I 
assume that there has been a format change in the xdr files; can this 
be?  If yes, is there any way to read in files that have been written 
in the old format?  That would be very useful for me since otherwise I 
would have to repeat quite a lot of simulations.

Note that the change seems to be in the "systems.xdr" file, not in the 
"mesh.xdr" since loading an old "mesh.xdr" together with a new 
"system.xdr" works well.

Also note that the simulation that writes the results runs in parallel 
(number of processors > 1), whereas the program that reads the results 
runs on one processor only.

Any help is appreciated.

Best Regards,

Tim

-- 
Dr. Tim Kroeger
[email protected]            Phone +49-421-218-7710
[email protected]            Fax   +49-421-218-4236
www.mevis.fraunhofer.de/~tim

Fraunhofer MEVIS, Institute for Medical Image Computing
Universitaetsallee 29, 28359 Bremen, Germany


------------------------------------------------------------------------------

_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to