当前位置: 首页>>代码示例>>Python>>正文


Python Job.validParams方法代码示例

本文整理汇总了Python中Job.Job.validParams方法的典型用法代码示例。如果您正苦于以下问题:Python Job.validParams方法的具体用法?Python Job.validParams怎么用?Python Job.validParams使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Job.Job的用法示例。


在下文中一共展示了Job.validParams方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: validParams

# 需要导入模块: from Job import Job [as 别名]
# 或者: from Job.Job import validParams [as 别名]
  def validParams():
    params = Job.validParams()

    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
开发者ID:DarinReid,项目名称:moose,代码行数:30,代码来源:PBSJob.py

示例2: validParams

# 需要导入模块: from Job import Job [as 别名]
# 或者: from Job.Job import validParams [as 别名]
    def validParams():
        params = Job.validParams()

        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("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
开发者ID:cbolisetti,项目名称:moose,代码行数:41,代码来源:PBSJob.py


注:本文中的Job.Job.validParams方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。