Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Armin Wehrfritz
Xdmf
Commits
1d618f9e
Commit
1d618f9e
authored
Dec 16, 2013
by
Andrew J. Burns (Cont
Browse files
fixed default write mode for hdf5 writer when writing to single file
parent
bfdf7d5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/XdmfHeavyDataWriter.cpp
View file @
1d618f9e
...
...
@@ -1046,14 +1046,34 @@ XdmfHeavyDataWriter::controllerSplitting(XdmfArray & array,
unsigned
int
j
=
controllerIndexOffset
;
try
{
if
(
mMode
==
Default
)
{
std
::
stringstream
testFile
;
if
(
getFileIndex
()
==
0
)
{
// If sequentially named files need to be created or referenced
testFile
<<
checkFileName
<<
"."
<<
checkFileExt
;
}
else
{
testFile
<<
checkFileName
<<
getFileIndex
()
<<
"."
<<
checkFileExt
;
}
heavyDataController
=
this
->
createController
(
heavyDataController
->
ge
tFile
Path
(),
this
->
createController
(
tes
tFile
.
str
(),
heavyDataController
->
getDataSetPath
(),
array
.
getArrayType
(),
start
,
stride
,
dimensions
,
dataspaceDimensions
);
}
else
{
heavyDataController
=
this
->
createController
(
heavyDataController
->
getFilePath
(),
heavyDataController
->
getDataSetPath
(),
array
.
getArrayType
(),
start
,
stride
,
dimensions
,
dataspaceDimensions
);
}
}
catch
(
XdmfError
e
)
{
throw
e
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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