Commit 817cd649 authored by Kenneth Leiter's avatar Kenneth Leiter

BUG: Fix bug in xpointers when writer is used multiple times.

XPointers were generated incorrectly when the same XdmfWriter was
used to write files multiple times. This was caused by not resetting
xPathCount when after the file was written.
parent 6748b239
......@@ -68,7 +68,10 @@ public:
void
closeFile()
{
// remove xpath info as it will not be valid for the new file
mXPath.clear();
mXPathCount = 0;
mXPathString = "";
std::ofstream fileStream;
if(!mStream) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment