예제 #1
0
파일: energy_model.py 프로젝트: Loewe2/pism
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)