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
a95a30c0
Commit
a95a30c0
authored
Oct 14, 2015
by
Matthieu Schaller
Browse files
Recover the data type in HDF5 only once per array.
parent
6efcfc75
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/single_io.c
View file @
a95a30c0
...
...
@@ -105,7 +105,7 @@ void readArrayBackEnd(hid_t grp, char* name, enum DATA_TYPE type, int N,
// error("Non-matching types between the code and the file");
/* Allocate temporary buffer */
temp
=
malloc
(
N
*
dim
*
sizeOfType
(
type
)
);
temp
=
malloc
(
N
*
dim
*
typeSize
);
if
(
temp
==
NULL
)
error
(
"Unable to allocate memory for temporary buffer"
);
/* Read HDF5 dataspace in temporary buffer */
...
...
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