From 92b76b9b0247d644710aa1ea63313e02c3871ac5 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Mon, 04 Jul 2016 17:14:47 +0000 Subject: [PATCH] Forgot to commit cluster.c, now it is loast and I am rewritting. Step 1: creating and destroying --- src/timestep.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/timestep.c b/src/timestep.c index 9f40e1c..6972015 100644 --- a/src/timestep.c +++ b/src/timestep.c @@ -60,7 +60,11 @@ /* RANDOM SEED SET BY CURRENT TIME */ epochtime=get_epoch(); srand48(epochtime); - +/*Nir Gov: randomly add spontaneous curvature for some vertices */ + for(i=0;i<200;i++){ + int b=rand() % vesicle->vlist->n; + vesicle->vlist->vtx[b]->c=-0.1; + } centermass(vesicle); cell_occupation(vesicle); vesicle_volume(vesicle); //needed for constant volume at this moment -- Gitblit v1.9.3