From f977e8fe32b6a1a2ae85662ab35fd7c9f647cc3e Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@gmail.com> Date: Mon, 02 Jul 2018 10:50:58 +0000 Subject: [PATCH] Added a funciton that calculates everything needed for spherical harmonics --- src/shcomplex.c | 8 ++++++++ src/shcomplex.h | 1 + 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/shcomplex.c b/src/shcomplex.c index 9002e7e..0f44f32 100644 --- a/src/shcomplex.c +++ b/src/shcomplex.c @@ -177,3 +177,11 @@ return gsl_complex_abs2(vesicle->sphHarmonics->ulmComplex[l][m]); } + +void solve_for_ulm2(ts_vesicle *vesicle){ + ts_double r0=getR0(vesicle); + preparationSh(vesicle,r0); + calculateUlmComplex(vesicle); + storeUlmComplex2(vesicle); + +} diff --git a/src/shcomplex.h b/src/shcomplex.h index d298228..9778ffb 100644 --- a/src/shcomplex.h +++ b/src/shcomplex.h @@ -8,4 +8,5 @@ ts_bool calculateUlmComplex(ts_vesicle *vesicle); ts_double calculateKc(ts_vesicle *vesicle, ts_int lmin, ts_int lmax); ts_double get_absolute_ulm2(ts_vesicle *vesicle, int l, int m); +void solve_for_ulm2(ts_vesicle *vesicle); #endif -- Gitblit v1.9.3