def test_enth_restart_from_temp(): enth_model = PISM.EnthalpyModel(grid, None) temp_model = PISM.TemperatureModel(grid, None) initialize(temp_model) pio = PISM.util.prepare_output("temp_model_state.nc") temp_model.write_model_state(pio) enth_model.restart(pio, 0)