Commit 45909cfa authored by James Willis's avatar James Willis
Browse files

Call vectorised version of runner_dopair1_density.

parent e0b23e81
......@@ -1684,7 +1684,7 @@ void *runner_main(void *data) {
case task_type_pair:
if (t->subtype == task_subtype_density) {
#ifdef WITH_VECTORIZATION
#if defined(WITH_VECTORIZATION) && defined(GADGET2_SPH)
runner_dopair1_density_vec(r, ci, cj);
#else
runner_dopair1_density(r, ci, cj);
......
......@@ -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);
......
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