From 643dcebd888c5555599d4adfaab382bb53bde858 Mon Sep 17 00:00:00 2001
From: James Willis <james.s.willis@durham.ac.uk>
Date: Thu, 7 Sep 2017 14:19:15 +0100
Subject: [PATCH] Timer toc was in the wrong place. Should have been at the end
 of the function.

---
 src/runner_doiact_vec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/runner_doiact_vec.c b/src/runner_doiact_vec.c
index 98e0ed5486..f73b1232ad 100644
--- a/src/runner_doiact_vec.c
+++ b/src/runner_doiact_vec.c
@@ -1185,8 +1185,9 @@ void runner_dopair1_density_vec(struct runner *r, struct cell *ci,
 
     } /* loop over the parts in cj. */
 
-    TIMER_TOC(timer_dopair_density);
   }
+  
+  TIMER_TOC(timer_dopair_density);
 
 #endif /* WITH_VECTORIZATION */
 }
-- 
GitLab