Hotfix positive z crossings

This commit is contained in:
2025-11-21 12:38:58 +01:00
parent 41ffe0b96f
commit 26b5820a15
+1 -1
View File
@@ -160,7 +160,7 @@ void CurrentCollector::collectLongitudinalMovement(
if (bin_new(1) < bin_old(1)) {
z_negative_crossings(bin_old(0), bin_new(1) + 1) += weight;
} else if (bin_new(1) > bin_old(1)) {
z_positive_crossings(bin_old(0), bin_old(1)) += weight;
z_positive_crossings(bin_old(0), bin_new(1)) += weight;
}
}
// does not work correctly if \Delta t*v_phi > pi*r!