Skip to content

Commit 084a030

Browse files
committed
Add NAS basic example
1 parent d93cf02 commit 084a030

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/basic/nas.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from pbs4py import PBS
2+
3+
group = 'a1234' # replace your charge number here
4+
nas = PBS.nas(group, proc_type='bro', queue_name='devel', time=2)
5+
commands = [nas.create_mpi_command('nodet_mpi', 'debug')]
6+
nas.requested_number_of_nodes = 4
7+
nas.write_job_file('devel.pbs', 'debug', commands)

0 commit comments

Comments
 (0)