Skip to content
GitLab
Menu
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
7ca5dac5
Commit
7ca5dac5
authored
Feb 13, 2020
by
Matthieu Schaller
Browse files
Write the IDs of the stars as unsigned long long
parent
7f22c13f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/stars/Default/stars_io.h
View file @
7ca5dac5
...
@@ -125,7 +125,7 @@ INLINE static void stars_write_particles(const struct spart *sparts,
...
@@ -125,7 +125,7 @@ INLINE static void stars_write_particles(const struct spart *sparts,
list
[
2
]
=
io_make_output_field
(
"Masses"
,
FLOAT
,
1
,
UNIT_CONV_MASS
,
0
.
f
,
list
[
2
]
=
io_make_output_field
(
"Masses"
,
FLOAT
,
1
,
UNIT_CONV_MASS
,
0
.
f
,
sparts
,
mass
,
"Masses of the particles"
);
sparts
,
mass
,
"Masses of the particles"
);
list
[
3
]
=
io_make_output_field
(
"ParticleIDs"
,
LONGLONG
,
1
,
UNIT_CONV_NO_UNITS
,
list
[
3
]
=
io_make_output_field
(
"ParticleIDs"
,
U
LONGLONG
,
1
,
UNIT_CONV_NO_UNITS
,
0
.
f
,
sparts
,
id
,
"Unique ID of the particles"
);
0
.
f
,
sparts
,
id
,
"Unique ID of the particles"
);
list
[
4
]
=
io_make_output_field
(
list
[
4
]
=
io_make_output_field
(
...
...
src/stars/EAGLE/stars_io.h
View file @
7ca5dac5
...
@@ -132,7 +132,7 @@ INLINE static void stars_write_particles(const struct spart *sparts,
...
@@ -132,7 +132,7 @@ INLINE static void stars_write_particles(const struct spart *sparts,
"Masses of the particles at the current point "
"Masses of the particles at the current point "
"in time (i.e. after stellar losses"
);
"in time (i.e. after stellar losses"
);
list
[
3
]
=
io_make_output_field
(
"ParticleIDs"
,
LONGLONG
,
1
,
UNIT_CONV_NO_UNITS
,
list
[
3
]
=
io_make_output_field
(
"ParticleIDs"
,
U
LONGLONG
,
1
,
UNIT_CONV_NO_UNITS
,
0
.
f
,
sparts
,
id
,
"Unique ID of the particles"
);
0
.
f
,
sparts
,
id
,
"Unique ID of the particles"
);
list
[
4
]
=
io_make_output_field
(
list
[
4
]
=
io_make_output_field
(
...
...
Matthieu Schaller
@matthieu
mentioned in issue
#652 (closed)
·
Feb 13, 2020
mentioned in issue
#652 (closed)
mentioned in issue #652
Toggle commit list
Write
Preview
Supports
Markdown
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