本文整理汇总了Python中PISM.config_from_options方法的典型用法代码示例。如果您正苦于以下问题:Python PISM.config_from_options方法的具体用法?Python PISM.config_from_options怎么用?Python PISM.config_from_options使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PISM
的用法示例。
在下文中一共展示了PISM.config_from_options方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: import PISM [as 别名]
# 或者: from PISM import config_from_options [as 别名]
import PISM
com = PISM.PETSc.COMM_WORLD
sys = PISM.UnitSystem("")
log = PISM.StringLogger(com, 1)
pism_config = PISM.config_from_options(com, log, sys)
config = PISM.ConfigJSON(sys)
config.init_from_string("""
{
"constants" : {"ice" : {}, "fresh_water" : {}, "sea_water" : {}},
"bootstrapping" : {"defaults" : {}},
"calving" : {"eigen_calving" : {}, "thickness_calving" : {}, "float_kill" : {}},
"enthalpy_converter" : {},
"flow_law" : {
"gpbld" : {},
"Hooke" : {},
"isothermal_Glen": {},
"Paterson_Budd" : {}},
"grid" : {},
"hydrology" : {},
"fracture_density" : {},
"stress_balance" : {
"ssa" : {"strength_extension" : {}, "fd" : {"lateral_drag" : {}}},
"sia" : {}
},
"time" : {},
"geometry" : {"update" : {}, "part_grid" : {}},
"climate_forcing" : {},
"inverse" : {"design" : {}, "ssa" : {}, "tikhonov" : {}},