Conversation
|
Just to clarify what I meant during the meeting when I suggested passing args/kwargs to the monitor function: def monitor(mesh, solution):
...
def run_simulation(...):
...
mover = MongeAmpereMover(...)
while float(t) < t_end + 0.5 * float(dt):
lvs.solve() # solve for c
mover.move(c) # pass c to monitorOr we could do it more explicitly, for example: monitor_kwargs = {"solution": c}
mover.move(**monitor_kwargs) |
Thanks. I guess one question I have is why do we need to define |
You're right, no need to complicate it for now. I inlined them in ac24b50. Still fiddly with the |
Closes #157.
Based on Animate's bubble shear demo.