Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Podhorszki, Norbert
ADIOS2
Commits
cfc18a27
Commit
cfc18a27
authored
Jun 29, 2019
by
Kai Germaschewski
Browse files
msvc: fix some more msvc complaints
including use of `uint` and more stack-allocated arrays
parent
e945ae8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/adios2/toolkit/interop/hdf5/HDF5Common.cpp
View file @
cfc18a27
...
...
@@ -190,7 +190,7 @@ void HDF5Common::WriteAdiosSteps()
hid_t
attr
=
H5Acreate
(
m_FileId
,
ATTRNAME_NUM_STEPS
.
c_str
(),
/*"NumSteps",*/
H5T_NATIVE_UINT
,
s
,
H5P_DEFAULT
,
H5P_DEFAULT
);
uint
totalAdiosSteps
=
m_CurrentAdiosStep
+
1
;
u
nsigned
int
totalAdiosSteps
=
m_CurrentAdiosStep
+
1
;
if
(
m_GroupId
<
0
)
{
...
...
@@ -296,18 +296,16 @@ void HDF5Common::FindVarsFromH5(core::IO &io, hid_t top_id, const char *gname,
hid_t
datasetId
=
H5Dopen
(
gid
,
name
,
H5P_DEFAULT
);
HDF5TypeGuard
d
(
datasetId
,
E_H5_DATASET
);
char
longName
[
std
::
strlen
(
heritage
)
+
std
::
strlen
(
gname
)
+
std
::
strlen
(
name
)
+
10
];
std
::
string
longName
;
if
(
strcmp
(
gname
,
"/"
)
==
0
)
{
sprintf
(
longName
,
"/%s"
,
name
)
;
longName
=
std
::
string
(
"/"
)
+
name
;
}
else
{
sprintf
(
longName
,
"%s/%s/%s"
,
heritage
,
gname
,
name
)
;
longName
=
std
::
string
(
heritage
)
+
"/"
+
gname
+
"/"
+
name
;
}
// CreateVar(io, datasetId, name);
ReadNativeAttrToIO
(
io
,
datasetId
,
longName
);
...
...
@@ -1246,7 +1244,7 @@ void HDF5Common::ReadAttrToIO(core::IO &io)
{
numAttrs
=
oinfo
.
num_attrs
;
int
k
=
0
;
int
MAX_ATTR_NAME_SIZE
=
100
;
const
int
MAX_ATTR_NAME_SIZE
=
100
;
for
(
k
=
0
;
k
<
numAttrs
;
k
++
)
{
char
attrName
[
MAX_ATTR_NAME_SIZE
];
...
...
@@ -1304,7 +1302,7 @@ void HDF5Common::ReadNativeAttrToIO(core::IO &io, hid_t datasetId,
// consuimg
}
int
k
=
0
;
int
MAX_ATTR_NAME_SIZE
=
100
;
const
int
MAX_ATTR_NAME_SIZE
=
100
;
for
(
k
=
0
;
k
<
numAttrs
;
k
++
)
{
char
attrName
[
MAX_ATTR_NAME_SIZE
];
...
...
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