We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e8c7f1 commit bca3d89Copy full SHA for bca3d89
src/lib.rs
@@ -416,7 +416,7 @@ pub extern "C" fn reflect_single_ion_c(num_species_target: &mut c_int, ux: &mut
416
pos_origin: Vector::new(x, y, z),
417
pos_old: Vector::new(x, y, z),
418
dir_old: Vector::new(*ux, *uy, *uz),
419
- energy_origin: *E1,
+ energy_origin: *E1*EV,
420
asymptotic_deflection: 0.0,
421
stopped: false,
422
left: false,
@@ -441,7 +441,7 @@ pub extern "C" fn reflect_single_ion_c(num_species_target: &mut c_int, ux: &mut
441
if output[0].pos.x >= 0.0 {
442
*E1 = 0.0
443
} else {
444
- *E1 = output[0].E;
+ *E1 = output[0].E/EV;
445
}
446
447
0 commit comments