From e9eab4fb2f72383a1a2adbe5f09f7bbd1fd45768 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@fe.uni-lj.si>
Date: Wed, 05 Mar 2014 16:00:30 +0000
Subject: [PATCH] First step in dump and restore. Grafted vtx still missing in the process

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

diff --git a/src/poly.c b/src/poly.c
index edab18f..1ddcec7 100644
--- a/src/poly.c
+++ b/src/poly.c
@@ -4,6 +4,7 @@
 #include"vertex.h"
 #include"bond.h"
 #include<math.h>
+#include"energy.h"
 
 ts_bool poly_assign_spring_const(ts_vesicle *vesicle){
 	ts_uint i;
@@ -30,6 +31,7 @@
 
 	for(i=0;i<poly->blist->n;i++){
 	poly->blist->bond[i]->bond_length=sqrt(vtx_distance_sq(poly->blist->bond[i]->vtx1,poly->blist->bond[i]->vtx2));
+	bond_energy(poly->blist->bond[i],poly);
 	}
 
 	return poly;

--
Gitblit v1.9.3