From 632960fbf1ebde72860966058354f7a6b61f5267 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@fe.uni-lj.si>
Date: Thu, 10 Apr 2014 09:35:04 +0000
Subject: [PATCH] Added possibility to skip calculations of spherical harmonics. Fixed documentation in triangle.c.

---
 src/initial_distribution.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/initial_distribution.c b/src/initial_distribution.c
index 7d5647c..5006a64 100644
--- a/src/initial_distribution.c
+++ b/src/initial_distribution.c
@@ -93,7 +93,12 @@
 
 	vesicle->pressure= tape->pressure;
 	vesicle->pswitch=tape->pswitch;
-	vesicle->sphHarmonics=sph_init(vesicle->vlist,tape->shc);
+    if(tape->shc>0){
+	    vesicle->sphHarmonics=sph_init(vesicle->vlist,tape->shc);
+    }
+    else {
+        vesicle->sphHarmonics=NULL;
+    }
     return vesicle;
 
 }

--
Gitblit v1.9.3