From d2f3609e9ecec5ec8dc02a992a6ec98e28ca9c6d Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Wed, 27 Feb 2019 18:37:32 +0000 Subject: [PATCH] Merge branch 'master' into plugins --- src/energy.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/energy.c b/src/energy.c index 77d61ab..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/2*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