mirror of
https://github.com/gwm17/catima.git
synced 2025-01-31 01:58:50 -05:00
X precalculation fix
This commit is contained in:
parent
3c0ce8c131
commit
397473360f
|
@ -613,8 +613,9 @@ double precalculated_lindhard_X(const Projectile &p){
|
||||||
double T = p.T;
|
double T = p.T;
|
||||||
int z = (int)p.Z ;
|
int z = (int)p.Z ;
|
||||||
if(z>LS_MAX_Z)z=LS_MAX_Z;
|
if(z>LS_MAX_Z)z=LS_MAX_Z;
|
||||||
//if(p.T<ls_coefficients::ls_energy_points[0])T=ls_coefficients::ls_energy_points[0];
|
//if(p.T<ls_coefficients::ls_energy_table(0))T=ls_coefficients::ls_energy_table(0);
|
||||||
if(p.T<ls_coefficients::ls_energy_table(0))T=ls_coefficients::ls_energy_table(0);
|
if(p.T<ls_coefficients::ls_energy_table(0))
|
||||||
|
return 1.0;
|
||||||
double da = (p.A - element_atomic_weight(z))/element_atomic_weight(z);
|
double da = (p.A - element_atomic_weight(z))/element_atomic_weight(z);
|
||||||
z = z-1;
|
z = z-1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user