[docs]definit_data(my_data,rp):""" an init routine for unit testing """delrp# this problem doesn't use runtime params# get the hity, momenta, and energy as separate variablesh=my_data.get_var("height")xmom=my_data.get_var("x-momentum")ymom=my_data.get_var("y-momentum")# initialize the componentsh[:,:]=1.0xmom[:,:]=0.0ymom[:,:]=0.0
[docs]deffinalize():""" print out any information to the user at the end of the run """