From c60a49ec71004bad2af9ca8b3240c035a7ab8d2a Mon Sep 17 00:00:00 2001
From: mihaf <miha.fosnaric@gmail.com>
Date: Tue, 03 Jun 2014 10:04:57 +0000
Subject: [PATCH] Added random seed.

---
 src/timestep.c |    4 +++-
 src/tape       |    4 ++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/tape b/src/tape
index 0f2246d..cedfc46 100644
--- a/src/tape
+++ b/src/tape
@@ -53,12 +53,12 @@
 #how many initial mcsweeps*inititer MC sweeps before recording to disk?
 inititer=0
 #how many records do you want on the disk iteration are there in a run?
-iterations=100
+iterations=10
 
 
 ###### Spherical harmonics ###########
 # If 0 then spherical harmonics are not calculated at all.
-spherical_harmonics_coefficients=10
+spherical_harmonics_coefficients=21
 
 #shut up if we are using cluster!!!
 quiet=false
diff --git a/src/timestep.c b/src/timestep.c
index d4b13c3..f2fb478 100644
--- a/src/timestep.c
+++ b/src/timestep.c
@@ -38,7 +38,9 @@
 
 	}
 
-
+/* RANDOM SEED SET BY CURRENT TIME */
+	epochtime=get_epoch();			
+	srand48(epochtime);
 
 	centermass(vesicle);
 	cell_occupation(vesicle);

--
Gitblit v1.9.3