Skip to content

Commit

Permalink
Fix density calculation (cms-patatrack#29)
Browse files Browse the repository at this point in the history
* Fix mistake in calculation of local density

* Update PyPi version for patch
  • Loading branch information
sbaldu authored Mar 12, 2024
1 parent d81f74a commit 1407ddd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CLUEstering/alpaka/CLUE/CLUEAlpakaKernels.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE {
}

if (dist_ij_sq <= dc * dc) {
*rho_i += kernel(acc, alpaka::math::sqrt(acc, dist_ij_sq), point_id, j);
*rho_i += kernel(acc, alpaka::math::sqrt(acc, dist_ij_sq), point_id, j) * dev_points->weight[j];
}

} // end of interate inside this bin
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pathlib import Path
from setuptools import setup

__version__ = "2.0.1"
__version__ = "2.1.2"
this_directory = Path(__file__).parent
long_description = (this_directory/'README.md').read_text()

Expand Down

0 comments on commit 1407ddd

Please sign in to comment.