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

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:
// remove xpath info as it will not be valid for the new file
mXPathCount = 0;
mXPathString = "";
std::ofstream fileStream;
if(!mStream) {
Supports Markdown
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