From 21fe8595bd50ec35ba42dfaa5823e63213a17bc3 Mon Sep 17 00:00:00 2001
From: James Willis <james.s.willis@durham.ac.uk>
Date: Thu, 26 Oct 2017 09:53:05 +0100
Subject: [PATCH] Call vectorised version of doself_subset_density when
 vectorisation enabled.

---
 src/runner.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/runner.c b/src/runner.c
index b7ebf65273..ff392b0749 100644
--- a/src/runner.c
+++ b/src/runner.c
@@ -776,7 +776,11 @@ void runner_do_ghost(struct runner *r, struct cell *c, int timer) {
 
             /* Self-interaction? */
             if (l->t->type == task_type_self)
+#ifdef WITH_VECTORIZATION
+              runner_doself_subset_density_vec(r, finger, parts, pid, count);
+#else
               runner_doself_subset_density(r, finger, parts, pid, count);
+#endif
 
             /* Otherwise, pair interaction? */
             else if (l->t->type == task_type_pair) {
-- 
GitLab