"""A setup intended for unit testing."""DEFAULT_INPUTS=NonePROBLEM_PARAMS={}
[docs]definit_data(my_data,rp):""" an init routine for unit testing """delrp# this problem doesn't use runtime params# get the density, momenta, and energy as separate variablesdens=my_data.get_var("density")xmom=my_data.get_var("x-momentum")ymom=my_data.get_var("y-momentum")ener=my_data.get_var("energy")# initialize the components, remember, that ener here is rho*eint# + 0.5*rho*v**2, where eint is the specific internal energy# (erg/g)dens[:,:]=1.0xmom[:,:]=0.0ymom[:,:]=0.0ener[:,:]=2.5
[docs]deffinalize():""" print out any information to the user at the end of the run """