From 42190fb471120cd6aafc9227081c57f7a0aca68e Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Thu, 04 Jul 2019 20:04:10 +0000
Subject: [PATCH] Fixed the max_occupancy double -> int

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

diff --git a/src/restore.c b/src/restore.c
index 111d89b..989a87b 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -88,7 +88,7 @@
 	mean_curvature_and_energy(vesicle);
 	sweep_attraction_bond_energy(vesicle);
 	if(vesicle->tape->stretchswitch==1){
-		vesicle->tlist->a0=sqrt(3)/2.0*pow((vesicle->tape->dmax+1.0)/2.0,2);  
+		vesicle->tlist->a0=sqrt(3)/4.0*pow((vesicle->tape->dmax+1.0)/2.0,2);  
 		for(i=0;i<vesicle->tlist->n;i++){
 			stretchenergy(vesicle, vesicle->tlist->tria[i]);
 		}

--
Gitblit v1.9.3