Commit fe11c3f
committed
fix: termination of ALP pulse-time loop
The pulse-time loop in ALPStrategy used an absolute difference
and hardcoded absolute epsilon (std::fabs(time - pulseTime) > 1e-6)
as its termination guard, which does not brake if the time increment is not a whole fraction of pulseTime (or very close).
Replace with a scaled epsilon (coverageTimeStep * 1e-4) and changed termination guard.1 parent 937d716 commit fe11c3f
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
181 | | - | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
0 commit comments