Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
5d53d42c
Commit
5d53d42c
authored
Oct 05, 2015
by
Matthieu Schaller
Browse files
Be less pedantic about checking data types when reading HDF5 files.
parent
04f57782
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/parallel_io.c
View file @
5d53d42c
...
...
@@ -131,8 +131,7 @@ void readArrayBackEnd(hid_t grp, char* name, enum DATA_TYPE type, int N,
/* Read HDF5 dataspace in temporary buffer */
/* Dirty version that happens to work for vectors but should be improved */
/* Using HDF5 dataspaces would be better */
h_err
=
H5Dread
(
h_data
,
hdf5Type
(
type
),
h_memspace
,
h_filespace
,
h_plist_id
,
temp
);
h_err
=
H5Dread
(
h_data
,
h_type
,
h_memspace
,
h_filespace
,
h_plist_id
,
temp
);
if
(
h_err
<
0
)
{
error
(
"Error while reading data array '%s'."
,
name
);
}
...
...
src/serial_io.c
View file @
5d53d42c
...
...
@@ -134,8 +134,7 @@ void readArrayBackEnd(hid_t grp, char* name, enum DATA_TYPE type, int N,
/* Read HDF5 dataspace in temporary buffer */
/* Dirty version that happens to work for vectors but should be improved */
/* Using HDF5 dataspaces would be better */
h_err
=
H5Dread
(
h_data
,
hdf5Type
(
type
),
h_memspace
,
h_filespace
,
H5P_DEFAULT
,
temp
);
h_err
=
H5Dread
(
h_data
,
h_type
,
h_memspace
,
h_filespace
,
H5P_DEFAULT
,
temp
);
if
(
h_err
<
0
)
{
error
(
"Error while reading data array '%s'."
,
name
);
}
...
...
src/single_io.c
View file @
5d53d42c
...
...
@@ -111,7 +111,7 @@ void readArrayBackEnd(hid_t grp, char* name, enum DATA_TYPE type, int N,
/* Read HDF5 dataspace in temporary buffer */
/* Dirty version that happens to work for vectors but should be improved */
/* Using HDF5 dataspaces would be better */
h_err
=
H5Dread
(
h_data
,
h
df5Type
(
type
)
,
H5S_ALL
,
H5S_ALL
,
H5P_DEFAULT
,
temp
);
h_err
=
H5Dread
(
h_data
,
h
_
type
,
H5S_ALL
,
H5S_ALL
,
H5P_DEFAULT
,
temp
);
if
(
h_err
<
0
)
{
error
(
"Error while reading data array '%s'."
,
name
);
}
...
...
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