From 6d3e83dbe0f144e4b56b00ddb49d678d1a12dba6 Mon Sep 17 00:00:00 2001
From: Chris Maffeo <cmaffeo2@illinois.edu>
Date: Wed, 20 Mar 2019 15:45:06 -0500
Subject: [PATCH] Commented unwanted conditional in ComputeKernel that made
 simulations using the softcore code include self-interactions

---
 src/ComputeForce.cuh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ComputeForce.cuh b/src/ComputeForce.cuh
index 01a91d6..9325e20 100644
--- a/src/ComputeForce.cuh
+++ b/src/ComputeForce.cuh
@@ -702,7 +702,7 @@ void computeKernel(Vector3 force[], Vector3 pos[], int type[],
 					int typej = -1;
 					for (int n = range.first; n < range.last; ++n) {
 						const int j = pairs[n].particle;
-						if (j < 0)
+//						if (j < 0)
 //							printf("%d -> pairs[%d].particle %d\n", i, n, j);
 						if (j == i) continue;
 						const int newj = type[j];
-- 
GitLab