Commit dd133666 authored by James Willis's avatar James Willis
Browse files

Only vectorise subset if Gadget SPH scheme used.

parent 78a1e165
......@@ -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 defined(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);
......
......@@ -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 defined(WITH_VECTORIZATION) && defined(GADGET2_SPH)
runner_doself_subset_density_vec(r, ci, parts, ind, count);
#else
DOSELF_SUBSET(r, ci, parts, ind, count);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment