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
08fb977c
Commit
08fb977c
authored
Apr 03, 2013
by
Matthieu Schaller
Browse files
One more GADGET-2 legacy header value written to the HDF5 file for compatibility.
Former-commit-id: 4cdbfb5d852f54b838c532e2e98f7eecdaf29c48
parent
ae60541d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/io.c
View file @
08fb977c
...
...
@@ -598,6 +598,8 @@ void write_output ( char* fileName, struct engine *e)
/* GADGET-2 legacy values */
writeAttribute
(
h_grp
,
"NumPart_Total"
,
UINT
,
numParticles
,
6
);
writeAttribute
(
h_grp
,
"NumPart_Total_HighWord"
,
UINT
,
numParticlesHighWord
,
6
);
double
MassTable
[
6
]
=
{
0
.,
0
.,
0
.,
0
.,
0
.,
0
.};
writeAttribute
(
h_grp
,
"MassTable"
,
DOUBLE
,
MassTable
,
6
);
writeAttribute
(
h_grp
,
"Flag_Entropy_ICs"
,
UINT
,
numParticlesHighWord
,
6
);
writeAttribute
(
h_grp
,
"NumFilesPerSnapshot"
,
INT
,
&
numFiles
,
1
);
...
...
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