Skip to content

Commit

Permalink
Changing bin_refine_factor in xi produced extremely slow code. Reverting
Browse files Browse the repository at this point in the history
  • Loading branch information
manodeep committed Apr 14, 2016
1 parent 4c52530 commit 237b868
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions xi_theory/xi/countpairs_xi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit 237b868

Please sign in to comment.