From e016c401c98b6a33392b551b2c40fccded21efe3 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Thu, 23 Feb 2012 14:43:30 +0000
Subject: [PATCH] bond data removed

---
 src/frame.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/frame.c b/src/frame.c
index a578188..faa1db8 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -13,9 +13,9 @@
         vesicle->cm[1]+=vtx[i]->data->y;
         vesicle->cm[2]+=vtx[i]->data->z; 
     } 
-    vesicle->cm[0]/=(float)n;
-    vesicle->cm[1]/=(float)n;
-    vesicle->cm[2]/=(float)n;
+    vesicle->cm[0]/=(ts_float)n;
+    vesicle->cm[1]/=(ts_float)n;
+    vesicle->cm[2]/=(ts_float)n;
     return TS_SUCCESS;
 }
 
@@ -28,7 +28,6 @@
 
     cell_list_cell_occupation_clear(vesicle->clist);
     for(i=0;i<n;i++){
-  
     cellidx=vertex_self_avoidance(vesicle, vesicle->vlist->vtx[i]);
     vesicle->vlist->vtx[i]->data->cell=vesicle->clist->cell[cellidx];
 
@@ -38,6 +37,7 @@
   //  if(ncy > vesicle->clist.ncmax[1]) vesicle->clist.ncmax[1]=ncy;
   //  if(ncz > vesicle->clist.ncmax[2]) vesicle->clist.ncmax[2]=ncz;
     }
+    //fprintf(stderr, "Bil sem tu\n"); 
 
 
 /* This was already done in previous for loop.... Have I gained some time? 
@@ -52,5 +52,7 @@
     }
 
 */
+	if(dcell);
+	if(shift);
     return TS_SUCCESS;
 }

--
Gitblit v1.9.3