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
436eb366
Commit
436eb366
authored
Dec 07, 2017
by
James Willis
Browse files
Fix for serial dopair2 in the rare case when the particle separation equals the smoothing length.
parent
290661c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runner_doiact.h
View file @
436eb366
...
...
@@ -1370,7 +1370,7 @@ void DOPAIR2(struct runner *r, struct cell *ci, struct cell *cj, const int sid,
/* Hit or miss?
(note that we must avoid the r2 < hig2 cases we already processed) */
if
(
r2
<
hjg2
&&
r2
>
hig2
)
{
if
(
r2
<
hjg2
&&
r2
>
=
hig2
)
{
IACT_NONSYM
(
r2
,
dx
,
hi
,
hj
,
pi
,
pj
);
}
}
/* loop over the active parts in ci. */
...
...
@@ -1432,7 +1432,7 @@ void DOPAIR2(struct runner *r, struct cell *ci, struct cell *cj, const int sid,
/* Hit or miss?
(note that we must avoid the r2 < hig2 cases we already processed) */
if
(
r2
<
hjg2
&&
r2
>
hig2
)
{
if
(
r2
<
hjg2
&&
r2
>
=
hig2
)
{
/* Does pi need to be updated too? */
if
(
part_is_active
(
pi
,
e
))
...
...
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