From 37d14a0a50ed40f536cc3821b3584552e1b75c5c Mon Sep 17 00:00:00 2001
From: Samo Penic <samo@CAE-linux.(none)>
Date: Mon, 07 Apr 2014 19:55:16 +0000
Subject: [PATCH] added statistics output to the outer loop

---
 src/spherical_trisurf.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/spherical_trisurf.c b/src/spherical_trisurf.c
index 46a2582..6c5946f 100644
--- a/src/spherical_trisurf.c
+++ b/src/spherical_trisurf.c
@@ -60,12 +60,23 @@
 calculateYlmi(vesicle);
 calculateUlm(vesicle);
 
+//preloop:
+ts_double vmsr, bfsr;
+for(i=0;i<1000;i++){
+	cell_occupation(vesicle);
+	for(j=0;j<1000;j++){
+		single_timestep(vesicle, &vmsr, &bfsr);
+	}	
+	centermass(vesicle);
+	fprintf(stderr, "Preloop %d completed.\n",i+1);
+}
+
 nmax=1000;
 for(i=0;i<nmax;i++){
 	for(j=0;j<200;j++){
 		cell_occupation(vesicle);
 		for(k=0;k<5;k++){
-		single_timestep(vesicle);
+		single_timestep(vesicle, &vmsr, &bfsr);
 		}
 		centermass(vesicle);
 	}	

--
Gitblit v1.9.3