本文整理汇总了Python中PISM.stop_on_version_option方法的典型用法代码示例。如果您正苦于以下问题:Python PISM.stop_on_version_option方法的具体用法?Python PISM.stop_on_version_option怎么用?Python PISM.stop_on_version_option使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PISM
的用法示例。
在下文中一共展示了PISM.stop_on_version_option方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: or
# 需要导入模块: import PISM [as 别名]
# 或者: from PISM import stop_on_version_option [as 别名]
p_pw *= self.thkeff_reduce\
+ (1.0 - self.thkeff_reduce)\
* (thk - self.thkeff_H_low) / (self.thkeff_H_high - self.thkeff_H_low);
return p_pw;
# The main code for a run follows:
if __name__ == '__main__':
context = PISM.Context()
com = context.com
PISM.set_abort_on_sigint(True)
PISM.verbosityLevelFromOptions()
PISM.verbPrintf(2,PISM.Context().com,"SSA forward model.\n")
PISM.stop_on_version_option()
usage = \
""" ssa_forward.py -i IN.nc -Mx number -My number [-o file.nc]
or (at python prompt)
run ssa_forward -i IN.nc -Mx number -My number [-o file.nc]
where:
-i IN.nc is input file in NetCDF format: contains PISM-written model state
-Mx number of grid points in the x direction
-My number of grid points in the y direction
notes:
* -i is required
"""
PISM.show_usage_check_req_opts(com,"ssa_forward",["-i"],usage)
config = context.config()