Commit a8e1ea8
committed
fix: replace fragile floating-point equality comparisons
- m_ibm.fpp: Re(1) /= 0._wp -> Re(1) > 0._wp (matches convention in
m_global_parameters.fpp where Re is checked with > 0)
- m_ibm.fpp: sqrt(sum(axis**2)) == 0 -> < sgm_eps (floating-point
magnitude should not be compared with exact equality)
- ExtrusionHardcodedIC.fpp: dummy_x == x0 -> f_approx_equal (coordinates
read from files should not be compared with exact equality)1 parent 42ac3ce commit a8e1ea8
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
907 | | - | |
| 907 | + | |
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
| |||
1110 | 1110 | | |
1111 | 1111 | | |
1112 | 1112 | | |
1113 | | - | |
| 1113 | + | |
1114 | 1114 | | |
1115 | 1115 | | |
1116 | 1116 | | |
| |||
0 commit comments