generalized FindCluster to read in general cluster sizes - assuming that finding cluster center is equal for all clusters

This commit is contained in:
Mazzoleni Alice Francesca
2025-04-02 12:05:16 +02:00
parent 04728929cb
commit 240960d3e7
2 changed files with 11 additions and 10 deletions

View File

@ -67,7 +67,7 @@ Eta2 calculate_eta2(
size_t index_bottom_left_max_2x2_subcluster =
(int(c / (ClusterSizeX - 1))) * ClusterSizeX + c % (ClusterSizeX - 1);
if ((cl.data[index_bottom_left_max_2x2_subcluster] +
if ((cl.data[index_bottom_left_max_2x2_subcluster] +s
cl.data[index_bottom_left_max_2x2_subcluster + 1]) != 0)
eta.x = static_cast<double>(
cl.data[index_bottom_left_max_2x2_subcluster + 1]) /