Commit 5b0a606
committed
fix: widen uniform-grid tolerance to sqrt(epsilon(h0)) for single-precision
The previous 1e-10 threshold was below machine epsilon for real(4) (~1.2e-7),
causing uniform_grid to always be .false. in --single builds since FP-computed
spacings deviate at ~1e-7 level.
Using sqrt(epsilon(h0))*abs(h0) is precision-agnostic: ~1.5e-8 relative in
double, ~3.5e-4 in single -- above FP noise in both modes.1 parent daf8d8f commit 5b0a606
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
850 | | - | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
851 | 853 | | |
852 | 854 | | |
853 | 855 | | |
854 | | - | |
| 856 | + | |
855 | 857 | | |
856 | 858 | | |
857 | 859 | | |
| |||
0 commit comments