Skip to content

Commit

Permalink
Solved bug when using floats instead of doubles.
Browse files Browse the repository at this point in the history
  • Loading branch information
adolfomunoz committed Feb 19, 2024
1 parent 6a7f265 commit ccddd95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class RegionsIntegratorParallelControlVariates {
Range<Float,DIM> binrange = range;
for (std::size_t i=0;i<DIMBINS;++i)
binrange = binrange.subrange_dimension(i,range.min(i)+pos[i]*drange[i],range.min(i)+(pos[i]+1)*drange[i]);
std::vector<Range<Float,DIM>> region_bin_ranges(perbin[pos].size(),range_primary<DIM>());
std::vector<Range<Float,DIM>> region_bin_ranges(perbin[pos].size(),range_primary<DIM,Float>());
//This is for the control variate and for the region_bin_ranges
for (std::size_t i = 0; i<region_bin_ranges.size(); ++i) {
region_bin_ranges[i] = binrange.intersection(perbin[pos][i]->range());
Expand Down

0 comments on commit ccddd95

Please sign in to comment.