From 9bf6ee3e299ae9d5627c15814bfad56bf47e9917 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Thu, 07 Jun 2012 21:08:30 +0000
Subject: [PATCH] preparationSh seems to work ok -- but it was not debugged. calculateYlmi does not work

---
 src/co_test.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/co_test.c b/src/co_test.c
index 3b5c69d..93d5b41 100644
--- a/src/co_test.c
+++ b/src/co_test.c
@@ -2,6 +2,7 @@
 #include "sh.h"
 #include "vesicle.h"
 #include "initial_distribution.h"
+#include <math.h>
 
 int main(){
 ts_vesicle *vesicle=initial_distribution_dipyramid(4,60,60,60,0.15);
@@ -21,9 +22,15 @@
     fprintf(stderr,"co(%d,%d)=%e\n",i,j,vesicle->sphHarmonics->co[i][j]);
     }
 }
-
+ts_double r0;
+vesicle_volume(vesicle);
+fprintf(stderr,"Volume=%e\n",vesicle->volume);
+r0=getR0(vesicle);
+fprintf(stderr,"r0=%e\n",r0);
+preparationSh(vesicle,r0);
+calculateYlmi(vesicle);
 
 sph_free(vesicle->sphHarmonics);
-//vesicle_free(vesicle);
+vesicle_free(vesicle);
 return 0;
 }

--
Gitblit v1.9.3