def test_standard(): sim = sim_dir_load("AMRZeldovichPancake.enzo", path="./Cosmology/AMRZeldovichPancake", find_outputs=True) sim.get_time_series() yield VerifySimulationSameTest(sim) base_pf = sim[0] fields = [f for f in _base_fields if f in base_pf.field_list] # Only test the last output. pf = sim[-1] for test in standard_small_simulation(pf, fields): yield test
def test_almost_standard(): sim = sim_dir_load("Toro-6-ShockTube.enzo", path="./Hydro/Hydro-1D/Toro-6-ShockTube", find_outputs=True) sim.get_time_series() yield VerifySimulationSameTest(sim) base_pf = sim[0] fields = [f for f in _base_fields if ("enzo", f) in base_pf.field_list] # Only test the last output. pf = sim[-1] for test in standard_small_simulation(pf, fields): yield test
def test_standard(): sim = sim_dir_load("MHD2DRotorTest.enzo", path="./MHD/2D/MHD2DRotorTest", find_outputs=True) sim.get_time_series() yield VerifySimulationSameTest(sim) base_pf = sim[0] fields = [f for f in _base_fields if f in base_pf.h.field_list] # Only test the last output. pf = sim[-1] for test in standard_small_simulation(pf, fields): yield test