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
55e67f34
Commit
55e67f34
authored
Nov 29, 2016
by
James Willis
Browse files
Called vectorised doself1 if vectorisation turned on.
parent
35069140
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test27cells.c
View file @
55e67f34
...
...
@@ -257,6 +257,7 @@ void dump_particle_fields(char *fileName, struct cell *main_cell,
/* Just a forward declaration... */
void
runner_dopair1_density
(
struct
runner
*
r
,
struct
cell
*
ci
,
struct
cell
*
cj
);
void
runner_doself1_density
(
struct
runner
*
r
,
struct
cell
*
ci
);
void
runner_doself1_density_vec
(
struct
runner
*
r
,
struct
cell
*
ci
);
/* And go... */
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
@@ -386,8 +387,10 @@ int main(int argc, char *argv[]) {
runner_dopair1_density
(
&
runner
,
main_cell
,
cells
[
j
]);
/* And now the self-interaction */
#ifdef WITH_VECTORIZATION
runner_doself1_density_vec
(
&
runner
,
main_cell
);
#else
runner_doself1_density
(
&
runner
,
main_cell
);
#endif
const
ticks
toc
=
getticks
();
...
...
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