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
45909cfa
Commit
45909cfa
authored
Mar 01, 2017
by
James Willis
Browse files
Call vectorised version of runner_dopair1_density.
parent
e0b23e81
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/runner.c
View file @
45909cfa
...
...
@@ -1684,7 +1684,7 @@ void *runner_main(void *data) {
case
task_type_pair
:
if
(
t
->
subtype
==
task_subtype_density
)
{
#ifdef
WITH_VECTORIZATION
#if
def
ined(
WITH_VECTORIZATION
) && defined(GADGET2_SPH)
runner_dopair1_density_vec
(
r
,
ci
,
cj
);
#else
runner_dopair1_density
(
r
,
ci
,
cj
);
...
...
src/runner_doiact.h
View file @
45909cfa
...
...
@@ -2081,7 +2081,12 @@ void DOSUB_PAIR1(struct runner *r, struct cell *ci, struct cell *cj, int sid,
if
(
!
(
cj
->
sorted
&
(
1
<<
sid
)))
runner_do_sort
(
r
,
cj
,
(
1
<<
sid
),
1
);
/* Compute the interactions. */
DOPAIR1
(
r
,
ci
,
cj
);
#if (DOPAIR1 == runner_dopair1_density) && defined(WITH_VECTORIZATION) && \
defined(GADGET2_SPH)
runner_dopair1_density_vec
(
r
,
ci
,
cj
);
#else
DOPAIR1
(
r
,
ci
,
cj
);
#endif
}
if
(
gettimer
)
TIMER_TOC
(
TIMER_DOSUB_PAIR
);
...
...
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