From a7df67628e7bcfd969d86caf2fa8a4cb76568b99 Mon Sep 17 00:00:00 2001 From: Andrej Prochazka Date: Fri, 15 Jan 2021 23:15:18 +0100 Subject: [PATCH] Eout fix when material thickness = 0 --- catima.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/catima.cpp b/catima.cpp index c736f08..7e73bb1 100644 --- a/catima.cpp +++ b/catima.cpp @@ -287,6 +287,7 @@ Result calculate(Projectile p, const Material &t, const Config &c){ if(t.thickness()==0){ res.dEdxo = res.dEdxi; + res.Eout = res.Ein; return res; }