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
342a9567
Commit
342a9567
authored
Mar 30, 2018
by
Matthieu Schaller
Browse files
Correct type to read in the DM particle IDs.
parent
acc908e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gravity/Default/gravity_io.h
View file @
342a9567
...
...
@@ -87,7 +87,7 @@ void darkmatter_read_particles(struct gpart* gparts, struct io_props* list,
UNIT_CONV_SPEED
,
gparts
,
v_full
);
list
[
2
]
=
io_make_input_field
(
"Masses"
,
FLOAT
,
1
,
COMPULSORY
,
UNIT_CONV_MASS
,
gparts
,
mass
);
list
[
3
]
=
io_make_input_field
(
"ParticleIDs"
,
LONGLONG
,
1
,
COMPULSORY
,
list
[
3
]
=
io_make_input_field
(
"ParticleIDs"
,
U
LONGLONG
,
1
,
COMPULSORY
,
UNIT_CONV_NO_UNITS
,
gparts
,
id_or_neg_offset
);
}
...
...
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