From d5d78a49c6b51fb1f6f0661d063034eaf65e02f7 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Wed, 25 Sep 2019 09:20:36 +0000
Subject: [PATCH] Constant volume and constant area fix. Removed spherical harmonics calculations in simulations. No ulm2.cvs and state.dat files are produced anymore

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

diff --git a/src/energy.c b/src/energy.c
index 810edd1..1dae415 100644
--- a/src/energy.c
+++ b/src/energy.c
@@ -240,5 +240,5 @@
 }
 
 void stretchenergy(ts_vesicle *vesicle, ts_triangle *triangle){
-	triangle->energy=vesicle->tape->xkA0/vesicle->tlist->n*pow((triangle->area/vesicle->tlist->a0-1),2);
+	triangle->energy=vesicle->tape->xkA0/2.0*pow((triangle->area/vesicle->tlist->a0-1.0),2);
 }

--
Gitblit v1.9.3