(sim, todo)
| 5151 | closure = {"tlast": 0.0} |
| 5152 | |
| 5153 | def _every(sim, todo): |
| 5154 | t = sim.round_time() |
| 5155 | if todo == "finish" or t >= closure["tlast"] + dt + (-0.5 * sim.fields.dt): |
| 5156 | for func in step_funcs: |
| 5157 | _eval_step_func(sim, func, todo) |
| 5158 | closure["tlast"] = t |
| 5159 | |
| 5160 | return _every |
| 5161 |
nothing calls this directly
no test coverage detected