From 1407dddff4928725f7abfb3f1d6d79f8eebd6657 Mon Sep 17 00:00:00 2001 From: Simone Balducci <93096843+sbaldu@users.noreply.github.com> Date: Tue, 12 Mar 2024 01:31:11 +0100 Subject: [PATCH] Fix density calculation (#29) * Fix mistake in calculation of local density * Update PyPi version for patch --- CLUEstering/alpaka/CLUE/CLUEAlpakaKernels.h | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CLUEstering/alpaka/CLUE/CLUEAlpakaKernels.h b/CLUEstering/alpaka/CLUE/CLUEAlpakaKernels.h index c5d4bbf2..660ccc08 100644 --- a/CLUEstering/alpaka/CLUE/CLUEAlpakaKernels.h +++ b/CLUEstering/alpaka/CLUE/CLUEAlpakaKernels.h @@ -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 diff --git a/setup.py b/setup.py index b4c8ff50..f9adaf31 100644 --- a/setup.py +++ b/setup.py @@ -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()