tconvert_config.py - pism - [fork] customized build of PISM, the parallel ice sheet model (tillflux branch)
(HTM) git clone git://src.adamsgaard.dk/pism
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
tconvert_config.py (1362B)
---
1 import PISM
2
3 com = PISM.PETSc.COMM_WORLD
4 sys = PISM.UnitSystem("")
5 log = PISM.StringLogger(com, 1)
6
7 pism_config = PISM.config_from_options(com, log, sys)
8
9 config = PISM.ConfigJSON(sys)
10 config.init_from_string("""
11 {
12 "constants" : {"ice" : {}, "fresh_water" : {}, "sea_water" : {}},
13 "bootstrapping" : {"defaults" : {}},
14 "calving" : {"eigen_calving" : {}, "thickness_calving" : {}, "float_kill" : {}},
15 "enthalpy_converter" : {},
16 "flow_law" : {
17 "gpbld" : {},
18 "Hooke" : {},
19 "isothermal_Glen": {},
20 "Paterson_Budd" : {}},
21 "grid" : {},
22 "hydrology" : {},
23 "fracture_density" : {},
24 "stress_balance" : {
25 "ssa" : {"strength_extension" : {}, "fd" : {"lateral_drag" : {}}},
26 "sia" : {}
27 },
28 "time" : {},
29 "geometry" : {"update" : {}, "part_grid" : {}},
30 "climate_forcing" : {},
31 "inverse" : {"design" : {}, "ssa" : {}, "tikhonov" : {}},
32 "bed_deformation" : {},
33 "ocean" : {},
34 "time_stepping" : {"skip" : {}},
35 "energy" : {"basal_melt" : {}},
36 "age" : {},
37 "output" : {"runtime" : {}, "sizes" : {}},
38 "run_info" : {},
39 "surface" : {"force_to_thickness" : {}, "pdd" : {"fausto" : {}}},
40 "atmosphere" : {"fausto_air_temp" : {}},
41 "regional" : {},
42 "basal_yield_stress" : {"constant" : {}, "mohr_coulomb" : {"topg_to_phi" : {}}},
43 "basal_resistance" : {"plastic" : {}, "pseudo_plastic" : {}}
44 }""")
45 config.import_from(pism_config)
46
47 print(config.dump())