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
26ecd35b
Commit
26ecd35b
authored
Mar 08, 2017
by
Matthieu Schaller
Browse files
Code formatting
parent
379c619c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/multipole.h
View file @
26ecd35b
...
...
@@ -360,7 +360,7 @@ INLINE static void gravity_L2P(const struct gravity_tensors *l,
#ifdef SWIFT_DEBUG_CHECKS
struct
gpart
*
gp
=
&
gparts
[
i
];
// if(gpart_is_active(gp, e)){
// if(gpart_is_active(gp, e)){
gp
->
mass_interacted
+=
l
->
mass_interacted
;
#endif
...
...
src/runner.c
View file @
26ecd35b
...
...
@@ -1352,9 +1352,9 @@ void runner_do_end_force(struct runner *r, struct cell *c, int timer) {
struct
part
*
restrict
p
=
&
parts
[
k
];
if
(
part_is_active
(
p
,
e
))
{
/* First, finish the force loop */
hydro_end_force
(
p
);
/* First, finish the force loop */
hydro_end_force
(
p
);
if
(
p
->
gpart
!=
NULL
)
gravity_end_force
(
p
->
gpart
,
const_G
);
}
}
...
...
@@ -1367,8 +1367,7 @@ void runner_do_end_force(struct runner *r, struct cell *c, int timer) {
if
(
gp
->
type
==
swift_type_dark_matter
)
{
if
(
gpart_is_active
(
gp
,
e
))
gravity_end_force
(
gp
,
const_G
);
if
(
gpart_is_active
(
gp
,
e
))
gravity_end_force
(
gp
,
const_G
);
}
#ifdef SWIFT_DEBUG_CHECKS
...
...
@@ -1390,8 +1389,8 @@ void runner_do_end_force(struct runner *r, struct cell *c, int timer) {
struct
spart
*
restrict
sp
=
&
sparts
[
k
];
if
(
spart_is_active
(
sp
,
e
))
{
/* First, finish the force loop */
star_end_force
(
sp
);
/* First, finish the force loop */
star_end_force
(
sp
);
gravity_end_force
(
sp
->
gpart
,
const_G
);
}
}
...
...
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