From 94c6a99ad85208e4fb1b013252334a4495b3cb46 Mon Sep 17 00:00:00 2001 From: Martin Reinecke Date: Fri, 23 Nov 2012 13:28:51 +0100 Subject: [PATCH] allow any number of rings in sharp_make_ecp_geom_info() --- libsharp/sharp_geomhelpers.c | 49 ++++++++++++------------------------ libsharp/sharp_geomhelpers.h | 3 +-- 2 files changed, 17 insertions(+), 35 deletions(-) diff --git a/libsharp/sharp_geomhelpers.c b/libsharp/sharp_geomhelpers.c index 7ecdd85..b1d0142 100644 --- a/libsharp/sharp_geomhelpers.c +++ b/libsharp/sharp_geomhelpers.c @@ -158,21 +158,6 @@ static void gauss_legendre_tbl(int n, double* x, double* w) } } -static void makeweights (int bw, double *weights) - { - const double pi = 3.141592653589793238462643383279502884197; - const double fudge = pi/(4*bw); - for (int j=0; j<2*bw; ++j) - { - double tmpsum = 0; - for (int k=0; k0)&&(j