From 636b18b90216ec0cb09afe5690bfe4e0c4857d3d Mon Sep 17 00:00:00 2001
From: James Willis <james.s.willis@durham.ac.uk>
Date: Sun, 8 Oct 2017 12:11:58 +0100
Subject: [PATCH] Comments.

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

diff --git a/src/runner_doiact_vec.c b/src/runner_doiact_vec.c
index d9595b4eda..6ecf72c1e7 100644
--- a/src/runner_doiact_vec.c
+++ b/src/runner_doiact_vec.c
@@ -965,7 +965,7 @@ void runner_dopair1_density_vec(struct runner *r, struct cell *ci,
   const int active_ci = cell_is_active(ci, e);
   const int active_cj = cell_is_active(cj, e);
 
-  /* Check if any particles are active and return if there are not. */
+  /* Check if any particles are active and return if there are none. */
   int numActive = 0;
 
   if (active_ci) {
@@ -1348,9 +1348,10 @@ void runner_dopair2_force_vec(struct runner *r, struct cell *ci,
   const int active_ci = cell_is_active(ci, e);
   const int active_cj = cell_is_active(cj, e);
 
-  /* Check if any particles are active and return if there are not. */
+  /* Check if any particles are active and return if there are none. */
   int numActive = 0;
 
+  /* Use the largest smoothing length to make sure that no interactions are missed. */
   const double h_max = max(hi_max, hj_max);
 
   if (active_ci) {
-- 
GitLab