1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-22 18:28:51 -05:00
This commit is contained in:
hrocho 2018-02-14 12:08:12 +01:00
parent f212a7409b
commit dea686bba6

View File

@ -165,7 +165,7 @@ double energy_out(double T, double thickness, Interpolator &range_spline){
step = -r*dedx;
e = e-step;
if(e<Ezero)return 0.0;
dedx = 1.0/range_spline.derivative(T);
dedx = 1.0/range_spline.derivative(e);
counter++;
if(counter>100){printf("too many iterations finding Eout");return -1;}
}