Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LAMBERT Jean-charles
unsio
Commits
2f3eebcb
Commit
2f3eebcb
authored
Jul 11, 2017
by
LAMBERT Jean-charles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HDF5:multiple read on individual dataset returning 0 fixed
parent
9458ddbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
src/snapshotgadgeth5.cc
src/snapshotgadgeth5.cc
+2
-0
test_src/uns_info.cc
test_src/uns_info.cc
+1
-1
No files found.
src/snapshotgadgeth5.cc
View file @
2f3eebcb
...
...
@@ -460,6 +460,8 @@ bool CSnapshotGadgetH5In<T>::loadDataset(std::string dataset, std::vector<U> &da
}
ok
=
false
;
}
}
else
{
ok
=
true
;
}
return
ok
;
}
...
...
test_src/uns_info.cc
View file @
2f3eebcb
...
...
@@ -91,7 +91,7 @@ template <class T> void displayInfo(bool display,int maxlines, std::string comp,
//if (comp == "gas") {
T
*
rho
,
*
u
,
*
hsml
,
*
temp
,
*
metal
;
ok
=
uns
->
snapshot
->
getData
(
comp
,
"rho"
,
&
nbody
,
&
rho
);
if
(
ok
&&
display
)
{
displayFormat
(
maxlines
,
"rho [1] = "
,
rho
,
1
,
nbody
,
3
);
}
...
...
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