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
dca42b05
Commit
dca42b05
authored
Apr 03, 2017
by
Matthieu Schaller
Browse files
Code formatting
parent
0a0cff1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
dca42b05
...
...
@@ -1157,7 +1157,8 @@ void cell_check_multipole(struct cell *c, void *data) {
/* Now compare the multipole expansion */
if
(
!
gravity_multipole_equal
(
&
ma
,
c
->
multipole
,
tolerance
))
{
message
(
"Multipoles are not equal at depth=%d! tol=%f"
,
c
->
depth
,
tolerance
);
message
(
"Multipoles are not equal at depth=%d! tol=%f"
,
c
->
depth
,
tolerance
);
message
(
"Correct answer:"
);
gravity_multipole_print
(
&
ma
.
m_pole
);
message
(
"Recursive multipole:"
);
...
...
@@ -1504,10 +1505,9 @@ void cell_drift_all_multipoles(struct cell *c, const struct engine *e) {
/* Check that we are actually going to move forward. */
if
(
ti_current
<
ti_old_multipole
)
error
(
"Attempt to drift to the past"
);
/* Drift the multipole */
if
(
ti_current
>
ti_old_multipole
)
gravity_drift
(
c
->
multipole
,
dt
);
if
(
ti_current
>
ti_old_multipole
)
gravity_drift
(
c
->
multipole
,
dt
);
/* Are we not in a leaf ? */
if
(
c
->
split
)
{
...
...
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