MCPcopy Create free account
hub / github.com/NanoComp/meep / _every

Function _every

python/simulation.py:5153–5158  ·  view source on GitHub ↗
(sim, todo)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

_eval_step_funcFunction · 0.85
round_timeMethod · 0.45

Tested by

no test coverage detected