1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-26 20:18: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; step = -r*dedx;
e = e-step; e = e-step;
if(e<Ezero)return 0.0; if(e<Ezero)return 0.0;
dedx = 1.0/range_spline.derivative(T); dedx = 1.0/range_spline.derivative(e);
counter++; counter++;
if(counter>100){printf("too many iterations finding Eout");return -1;} if(counter>100){printf("too many iterations finding Eout");return -1;}
} }