TORQUE¶
-
class
flow.environment.
DefaultTorqueEnvironment
¶ A default environment for environments with TORQUE scheduler.
{% extends "base_script.sh" %}
{% block header %}
#PBS -N {{ id }}
{% if walltime %}
#PBS -l walltime={{ walltime|format_timedelta }}
{% endif %}
{% if not no_copy_env %}
#PBS -V
{% endif %}
{% block tasks %}
{% set s_ppn = ':ppn=' ~ ppn if ppn else '' %}
{% set nn = nn|default((np_global/ppn)|round(method='ceil')|int if ppn else np_global, true) %}
#PBS -l nodes={{ nn }}{{ s_ppn }}
{% endblock %}
{% endblock %}