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
e9b1402d
Commit
e9b1402d
authored
Dec 27, 2017
by
Matthieu Schaller
Browse files
Corrected typo in non-debugging mode in the FFT task.
parent
ddf73330
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runner_doiact_fft.c
View file @
e9b1402d
...
...
@@ -165,7 +165,6 @@ void runner_do_grav_fft(struct runner* r, int timer) {
const
struct
engine
*
e
=
r
->
e
;
const
struct
space
*
s
=
e
->
s
;
const
integertime_t
ti_current
=
e
->
ti_current
;
const
double
a_smooth
=
e
->
gravity_properties
->
a_smooth
;
const
double
box_size
=
s
->
dim
[
0
];
const
int
cdim
[
3
]
=
{
s
->
cdim
[
0
],
s
->
cdim
[
1
],
s
->
cdim
[
2
]};
...
...
@@ -183,9 +182,11 @@ void runner_do_grav_fft(struct runner* r, int timer) {
/* Recover the list of top-level multipoles */
const
int
nr_cells
=
s
->
nr_cells
;
struct
gravity_tensors
*
restrict
multipoles
=
s
->
multipoles_top
;
struct
cell
*
cells
=
s
->
cells_top
;
#ifdef SWIFT_DEBUG_CHECKS
const
struct
cell
*
cells
=
s
->
cells_top
;
const
integertime_t
ti_current
=
e
->
ti_current
;
/* Make sure everything has been drifted to the current point */
for
(
int
i
=
0
;
i
<
nr_cells
;
++
i
)
if
(
cells
[
i
].
ti_old_multipole
!=
ti_current
)
...
...
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