Advance to next superstep. Returns `true` if should continue.
(&mut self)
| 81 | |
| 82 | /// Advance to next superstep. Returns `true` if should continue. |
| 83 | pub fn advance(&mut self) -> bool { |
| 84 | let delta = self.global_delta(); |
| 85 | self.iteration += 1; |
| 86 | self.acks.clear(); |
| 87 | |
| 88 | if delta < self.tolerance || self.iteration >= self.max_iterations { |
| 89 | self.completed = true; |
| 90 | return false; |
| 91 | } |
| 92 | true |
| 93 | } |
| 94 | |
| 95 | pub fn barrier_message(&self) -> SuperstepBarrier { |
| 96 | SuperstepBarrier { |
no test coverage detected