Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
5d53d42c
Commit
5d53d42c
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Be less pedantic about checking data types when reading HDF5 files.
parent
04f57782
No related branches found
No related tags found
1 merge request
!46
Blue gene HDF5 i/o fixes
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/parallel_io.c
+1
-2
1 addition, 2 deletions
src/parallel_io.c
src/serial_io.c
+1
-2
1 addition, 2 deletions
src/serial_io.c
src/single_io.c
+1
-1
1 addition, 1 deletion
src/single_io.c
with
3 additions
and
5 deletions
src/parallel_io.c
+
1
−
2
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
);
}
...
...
This diff is collapsed.
Click to expand it.
src/serial_io.c
+
1
−
2
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
);
}
...
...
This diff is collapsed.
Click to expand it.
src/single_io.c
+
1
−
1
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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment