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
4f946aa2
Commit
4f946aa2
authored
Mar 20, 2018
by
Matthieu Schaller
Browse files
In part_verify_links() complain if a DM particle has an ID or neg. offset of 0.
parent
bdc54ed6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/part.c
View file @
4f946aa2
...
...
@@ -119,7 +119,7 @@ void part_verify_links(struct part *parts, struct gpart *gparts,
if
(
gparts
[
k
].
type
==
swift_type_dark_matter
)
{
/* Check that it's not linked */
if
(
gparts
[
k
].
id_or_neg_offset
<
0
)
if
(
gparts
[
k
].
id_or_neg_offset
<
=
0
)
error
(
"DM gpart particle linked to something !"
);
}
...
...
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