Skip to content

Commit

Permalink
example: ensure dt is a float
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl committed Aug 4, 2024
1 parent 55cbff1 commit 938900d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/advection/surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def rhs(t, u):
logger.info("nsteps: %d", nsteps)

from grudge.shortcuts import set_up_rk4
dt_stepper = set_up_rk4("u", dt, u0, rhs)
dt_stepper = set_up_rk4("u", float(dt), u0, rhs)
plot = Plotter(actx, dcoll, order, visualize=visualize)

norm_u = actx.to_numpy(op.norm(dcoll, u0, 2))
Expand Down

0 comments on commit 938900d

Please sign in to comment.