From a8e354c7fad70eb7fdfda62ec83faf1be6c4ed44 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Tue, 24 Jan 2023 20:03:01 +0000
Subject: [PATCH] Changes in code and README for easier compilation. May break something

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

diff --git a/src/energy.c b/src/energy.c
index 4d27995..b182a87 100644
--- a/src/energy.c
+++ b/src/energy.c
@@ -213,7 +213,7 @@
 }
 
 ts_double direct_force_energy(ts_vesicle *vesicle, ts_vertex *vtx, ts_vertex *vtx_old){
-	if(fabs(vtx->c)<1e-15) return 0.0;
+	if(fabs(vtx->direct_interaction_force)<1e-15) return 0.0;
 //	printf("was here");
 	if(fabs(vesicle->tape->F)<1e-15) return 0.0;
 
@@ -238,3 +238,7 @@
 	return vesicle->tape->F*ddp;		
 	
 }
+
+void stretchenergy(ts_vesicle *vesicle, ts_triangle *triangle){
+	triangle->energy=vesicle->tape->xkA0/2.0*pow((triangle->area/vesicle->tlist->a0-1.0),2);
+}

--
Gitblit v1.9.3