From 839526c7afe7dce89d41d60579980d7428f541d4 Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Thu, 6 Dec 2018 12:53:58 +0300 Subject: [PATCH] Optimize memory usage in scatter --- src/main/kotlin/inr/numass/trapping/Scatter.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/kotlin/inr/numass/trapping/Scatter.kt b/src/main/kotlin/inr/numass/trapping/Scatter.kt index 479405a..e7cfbe3 100644 --- a/src/main/kotlin/inr/numass/trapping/Scatter.kt +++ b/src/main/kotlin/inr/numass/trapping/Scatter.kt @@ -133,8 +133,6 @@ object Scatter { // *theta: change of polar angle in degrees - //val sum = DoubleArray(1001) - var T: Double = 20000.0 / 27.2 var c = 0.0 var K: Double var y: Double @@ -151,7 +149,7 @@ object Scatter { // // Scattering angle *theta generation: // - T = E / 27.2 + val T = E / 27.2 val theta: Double if (E >= 100.0) { val xmin = Ecen * Ecen / (2.0 * T)