本文整理汇总了Python中Job.Job.getValidParams方法的典型用法代码示例。如果您正苦于以下问题:Python Job.getValidParams方法的具体用法?Python Job.getValidParams怎么用?Python Job.getValidParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Job.Job
的用法示例。
在下文中一共展示了Job.getValidParams方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getValidParams
# 需要导入模块: from Job import Job [as 别名]
# 或者: from Job.Job import getValidParams [as 别名]
def getValidParams():
params = Job.getValidParams()
params.addRequiredParam("chunks", "The number of PBS chunks.")
# Only one of either of the next two paramteres can be specified
params.addParam("mpi_procs", "The number of MPI processes per chunk.")
params.addParam("total_mpi_procs", "The total number of MPI processes to use divided evenly among chunks.")
params.addParam("place", "scatter:excl", "The PBS job placement scheme to use.")
params.addParam("walltime", "4:00:00", "The requested walltime for this job.")
params.addParam("no_copy", "A list of files specifically not to copy")
params.addParam("copy_files", "A list of files specifically to copy")
params.addStringSubParam(
"combine_streams", "#PBS -j oe", "Combine stdout and stderror into one file (needed for NO EXPECTED ERR)"
)
params.addStringSubParam("threads", "--n-threads=THREADS", "The number of threads to run per MPI process.")
params.addStringSubParam("queue", "#PBS -q QUEUE", "Which queue to submit this job to.")
params.addStringSubParam("module", "module load MODULE", "moose-dev-gcc", "The module to load.")
params.addStringSubParam("cli_args", "CLI_ARGS", "Any extra command line arguments to tack on.")
params.addStringSubParam(
"notifications",
"#PBS -m NOTIFICATIONS",
"The PBS notifications to enable: 'b' for begin, 'e' for end, 'a' for abort.",
)
params.addStringSubParam(
"notify_address", "#PBS -M NOTIFY_ADDRESS", "The email address to use for PBS notifications"
)
# Soft linked output during run
params.addParam(
"soft_link_output",
False,
"Create links to your STDOUT and STDERR files in your working directory during the run.",
)
params.addRequiredParam("moose_application", "The full path to the application to run.")
params.addRequiredParam("input_file", "The input file name.")
return params