From 91c712c267f72f0dbbe865fec9d2eefd77ff8c0e Mon Sep 17 00:00:00 2001 From: Samo <samo@beti.(none)> Date: Tue, 10 Jul 2012 05:36:21 +0000 Subject: [PATCH] Fixede bug in spherical harmonics. Added new test program with initial shape relaxation to sphere --- src/sh.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/sh.c b/src/sh.c index baeb8f9..a792715 100644 --- a/src/sh.c +++ b/src/sh.c @@ -343,7 +343,7 @@ ts_uint i,j,k; ts_vertex *cvtx; for(i=0;i<vesicle->sphHarmonics->l;i++){ - for(j=0;j<2*i;j++) vesicle->sphHarmonics->ulm[i][j]=0.0; + for(j=0;j<2*i+1;j++) vesicle->sphHarmonics->ulm[i][j]=0.0; } //TODO: call calculateYlmi !!! -- Gitblit v1.9.3