def init_data(my_data, rp):

    msg.bold("initializing the smooth advection problem...")

    # make sure that we are passed a valid patch object
    if not isinstance(my_data, patch.CellCenterData2d):
        print("ERROR: patch invalid in smooth.py")
        print(my_data.__class__)
        sys.exit()

    dens = my_data.get_var("density")

    xmin = my_data.grid.xmin
    xmax = my_data.grid.xmax

    ymin = my_data.grid.ymin
    ymax = my_data.grid.ymax

    xctr = 0.5*(xmin + xmax)
    yctr = 0.5*(ymin + ymax)

    dens.d[:,:] = 1.0 + numpy.exp(-60.0*((my_data.grid.x2d-xctr)**2 + 
                                         (my_data.grid.y2d-yctr)**2))
Updates information about a saved card. You can use this to change the
dataset/ETHPy150Open zingale/pyro2/advection/problems/smooth.py/init_data--crossover with--dataset/ETHPy150Open drewisme/authorizesauce/authorize/client.py/AuthorizeSavedCard.update