Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
src
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
H5hut
src
Commits
2ae76250
Commit
2ae76250
authored
Nov 19, 2018
by
gsell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/h5core/h5u_model.c: bug fixed in h5_set_view()
In h5_set_view() u->shape was created two times.
parent
f1cb1c98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
src/h5core/h5u_model.c
src/h5core/h5u_model.c
+2
-3
No files found.
src/h5core/h5u_model.c
View file @
2ae76250
...
...
@@ -286,6 +286,8 @@ h5u_set_view (
if
(
f
->
u
->
shape
>
0
)
{
TRY
(
total
=
hdf5_get_npoints_of_dataspace
(
f
->
u
->
shape
)
);
}
else
{
// if iteration does not contain a dataset, next function
// returns -1
TRY
(
total
=
h5u_get_totalnum_particles_by_idx
(
fh
,
0
));
}
h5_debug
(
"Total = %lld"
,
(
long
long
)
total
);
...
...
@@ -293,11 +295,8 @@ h5u_set_view (
/*
iteration does not contain a dataset yet!
*/
TRY
(
hdf5_close_dataspace
(
u
->
shape
));
TRY
(
u
->
shape
=
hdf5_create_dataspace
(
1
,
&
total
,
NULL
)
);
/*
:FIXME: Should 'total == 0' be considered valid or not?
:FIXME: why not gather total size?
*/
#if H5_HAVE_PARALLEL
TRY
(
...
...
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