Skip to content

Commit

Permalink
Update documentation to include module use and load options
Browse files Browse the repository at this point in the history
  • Loading branch information
Jo Basevi committed Aug 3, 2023
1 parent 8c8c691 commit 456a6d6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ MANIFEST
.coverage
.ipynb_checkpoints
.vscode
.idea
/test/tmp/
16 changes: 10 additions & 6 deletions docs/source/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -427,17 +427,21 @@ Miscellaneous
is generally only used for testing purposes, such as bit reproducibility.

``modules``
Specify a list of environment modules to load at the start of the PBS job,
for example::
Specify lists of environment modules and/or directories
to load/use at the start of the PBS job, for example::

modules:
- netcdf-c-4.9.0
- parallel-netcdf-1.12.3
- xerces-c-3.2.3
use:
- /path/to/module/directory
load:
- netcdf-c-4.9.0
- parallel-netcdf-1.12.3
- xerces-c-3.2.3

This is seldom needed, because payu is good at automatically determining
the environment modules required by model executables. If the modules
require `module use` inorder to be found, do this prior to `payu run`,
require `module use` in order to be found, this command can also be run
prior to `payu run` instead of listing the directory under the `use` option,
e.g.::

module use /path/to/module/directory
Expand Down
4 changes: 2 additions & 2 deletions test/test_payu.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ def test_parse_ldd_output():
with open(ldd_output_path, 'r') as f:
ldd_output = f.read()
required_libs = payu.fsops.parse_ldd_output(ldd_output)
assert(len(required_libs), 4)
assert(required_libs['libmpi.so.40'], '/apps/openmpi/4.0.2/lib/libmpi.so.40')
assert(len(required_libs) == 4)
assert(required_libs['libmpi.so.40'] == '/apps/openmpi/4.0.2/lib/libmpi.so.40')


def test_lib_update_lib_if_required():
Expand Down

0 comments on commit 456a6d6

Please sign in to comment.