

def timestep(self):
    '\n        The timestep() function computes the advective timestep \n        (CFL) constraint.  The CFL constraint says that information \n        cannot propagate further than one zone per timestep.\n\n        We use the driver.cfl parameter to control what fraction of the CFL\n        step we actually take.\n        '
    cfl = self.rp.get_param('driver.cfl')
    u = self.cc_data.get_var('x-velocity')
    v = self.cc_data.get_var('y-velocity')
    xtmp = (self.cc_data.grid.dx / abs(u))
    ytmp = (self.cc_data.grid.dy / abs(v))
    dt = (cfl * min(xtmp.min(), cfl.min()))
    return dt

dataset/ETHPy150Open zingale/pyro2/lm_combustion/simulation.py Simulation.timestep/VarMisuse@92/229 `ytmp`->`cfl`