From fae298c38d3dd90ce1aa996811a724f592850f72 Mon Sep 17 00:00:00 2001 From: joaoabcoelho Date: Tue, 8 Aug 2023 18:36:10 +0200 Subject: [PATCH] Only recompute fExpVL if needed --- src/PMNS_Iter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PMNS_Iter.cxx b/src/PMNS_Iter.cxx index ed998ab..2893bce 100644 --- a/src/PMNS_Iter.cxx +++ b/src/PMNS_Iter.cxx @@ -96,7 +96,7 @@ void PMNS_Iter::PropagatePath(NuPath p) dm *= kKm2eV * p.length / (2 * kGeV2eV * fEnergy); int nsplit = sqrt(0.065 * dm * fVL / fPrec); - if(nsplit){ + if(nsplit>1){ p.length /= nsplit; SetExpVL(p); }