From 237b868937ac4bcd95cbb2e72388be684ac1d671 Mon Sep 17 00:00:00 2001 From: Manodeep Sinha Date: Thu, 14 Apr 2016 18:24:06 +1000 Subject: [PATCH] Changing bin_refine_factor in xi produced extremely slow code. Reverting --- xi_theory/xi/countpairs_xi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xi_theory/xi/countpairs_xi.c b/xi_theory/xi/countpairs_xi.c index 16779c6a..4f952a7f 100644 --- a/xi_theory/xi/countpairs_xi.c +++ b/xi_theory/xi/countpairs_xi.c @@ -561,7 +561,7 @@ results_countpairs_xi *countpairs_xi(const int64_t ND, DOUBLE * restrict X, DOUB //How many bins to subdivide rmax into -> affects runtime on O(20-30%) levels. //Check with your typical use-case and set appropriately. Values of 1,2 and 3 are //all you might need to check. - int bin_refine_factor=2; + int bin_refine_factor=1; /*********************** *initializing the bins @@ -573,8 +573,6 @@ results_countpairs_xi *countpairs_xi(const int64_t ND, DOUBLE * restrict X, DOUB assert(rpmin > 0.0 && rpmax > 0.0 && rpmin < rpmax && "[rpmin, rpmax] are valid inputs"); assert(nbins > 0 && "Number of rp bins must be > 0"); - if(rpmax < 0.05*boxsize) bin_refine_factor = 1; - /*---Create 3-D lattice--------------------------------------*/ int nmesh_x=0,nmesh_y=0,nmesh_z=0; const DOUBLE xmin = 0.0, xmax=boxsize;