mirror of
https://github.com/gwm17/catima.git
synced 2024-11-22 18:28:51 -05:00
eout
This commit is contained in:
parent
f212a7409b
commit
dea686bba6
|
@ -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;}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user