From 89434d44fc91bf6dbaf023b3f3218c892420d908 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Sun, 03 Jul 2016 20:00:18 +0000
Subject: [PATCH] fixed some of the issues while reconstructing wesicles. Added Nbw/Nb metrics to the tspoststat tool.

---
 src/energy.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/energy.c b/src/energy.c
index cc5ccde..0e57e71 100644
--- a/src/energy.c
+++ b/src/energy.c
@@ -200,7 +200,7 @@
 inline ts_bool attraction_bond_energy(ts_bond *bond, ts_double w){
 
 	if(fabs(bond->vtx1->c)>1e-16 && fabs(bond->vtx2->c)>1e-16){
-		bond->energy=w;
+		bond->energy=-w;
 	}
 	else {
 		bond->energy=0.0;

--
Gitblit v1.9.3