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
dd133666
Commit
dd133666
authored
Oct 29, 2017
by
James Willis
Browse files
Only vectorise subset if Gadget SPH scheme used.
parent
78a1e165
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/runner.c
View file @
dd133666
...
...
@@ -776,7 +776,7 @@ void runner_do_ghost(struct runner *r, struct cell *c, int timer) {
/* Self-interaction? */
if
(
l
->
t
->
type
==
task_type_self
)
#ifdef
WITH_VECTORIZATION
#if
def
ined(
WITH_VECTORIZATION
) && defined(GADGET2_SPH)
runner_doself_subset_density_vec
(
r
,
finger
,
parts
,
pid
,
count
);
#else
runner_doself_subset_density
(
r
,
finger
,
parts
,
pid
,
count
);
...
...
src/runner_doiact.h
View file @
dd133666
...
...
@@ -2424,7 +2424,7 @@ void DOSUB_SUBSET(struct runner *r, struct cell *ci, struct part *parts,
/* Otherwise, compute self-interaction. */
else
#ifdef
WITH_VECTORIZATION
#if
def
ined(
WITH_VECTORIZATION
) && defined(GADGET2_SPH)
runner_doself_subset_density_vec
(
r
,
ci
,
parts
,
ind
,
count
);
#else
DOSELF_SUBSET
(
r
,
ci
,
parts
,
ind
,
count
);
...
...
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