On Fri, Feb 24, 2006 at 12:28:13PM +0000, Alexander Jarosch wrote:
I just want to report a bug in XMLFile.cpp. no matter what type of data
I write to a xml file, vector, matrix, Function, it will not close the
file with the needed </dolfin>.
So upon readin of any xml file, mesh included, dolfin fails because it
does not find the end of the file.
I did not look deeply into that just made a quick hack so I can work. I
added the writeFooter(); into each write out section, but now I get a
double </dolfin> at the end.
Alex
Hi!
The footer is written in the destructor of XMLFile, so it should
always be written unless you manage to avoid destroying the file
object.
The reason the footer is not written out in each write operation is
that you might want to write several objects to the same file, a mesh
and a vector for example. Currently, the only way DOLFIN can tell that
a user has finished writing is at the destructor.
Johan
_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev