Commit a4bb6cf
fix zsl_phy_atom_bohr_orb_radius for single percision
zsl_phy_atom_bohr_orb_radius does not work with single percision
as numbers to small get multipled and just become 0.0f. Multiple
a large constant in to the numerator and denomerator to prevent
numbers from getting to small.
Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>1 parent 7736927 commit a4bb6cf
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
33 | 43 | | |
34 | 44 | | |
35 | 45 | | |
36 | | - | |
| 46 | + | |
37 | 47 | | |
38 | 48 | | |
39 | 49 | | |
| |||
0 commit comments