Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xdmf
Xdmf
Commits
b20b6486
Commit
b20b6486
authored
Nov 03, 2010
by
Kenneth Leiter
Browse files
BUG: Fix writing of single XdmfArray to a file.
parent
ea06eaaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/XdmfWriter.cpp
View file @
b20b6486
...
...
@@ -163,6 +163,12 @@ void XdmfWriter::setWriteXPaths(const bool writeXPaths)
void
XdmfWriter
::
visit
(
XdmfArray
&
array
,
const
boost
::
shared_ptr
<
XdmfBaseVisitor
>
visitor
)
{
if
(
mImpl
->
mDepth
==
0
)
{
mImpl
->
openFile
();
}
mImpl
->
mDepth
++
;
bool
isSubclassed
=
array
.
getItemTag
().
compare
(
XdmfArray
::
ItemTag
)
!=
0
;
if
(
isSubclassed
)
...
...
@@ -226,6 +232,12 @@ void XdmfWriter::visit(XdmfArray & array, const boost::shared_ptr<XdmfBaseVisito
mImpl
->
mWriteXPaths
=
oldWriteXPaths
;
}
mImpl
->
mDepth
--
;
if
(
mImpl
->
mDepth
<=
0
)
{
mImpl
->
closeFile
();
}
}
void
XdmfWriter
::
visit
(
XdmfItem
&
item
,
const
boost
::
shared_ptr
<
XdmfBaseVisitor
>
visitor
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment