Skip to content

Commit

Permalink
Add module loads for narval system.
Browse files Browse the repository at this point in the history
Included the necessary module loading commands for the `narval` system in
`run.py` . Updated the test suite to include `narval` in system parameterization
for relevant tests.
  • Loading branch information
douglatornell committed Nov 26, 2024
1 parent 1d2c9dc commit cdea3eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions salishsea_cmd/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,12 @@ def _modules():
module load netcdf-fortran-mpi/4.6.0
"""
),
"narval": textwrap.dedent(
"""\
module load StdEnv/2020
module load netcdf-fortran-mpi/4.6.0
"""
),
"omega": textwrap.dedent(
"""\
module load OpenMPI/2.1.6/GCC/SYSTEM
Expand Down
4 changes: 2 additions & 2 deletions tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3179,8 +3179,8 @@ def test_salish(self, monkeypatch):

assert modules == ""

@pytest.mark.parametrize("system", ["beluga", "cedar", "graham"])
def test_beluga_cedar_graham(self, system, monkeypatch):
@pytest.mark.parametrize("system", ["beluga", "cedar", "graham", "narval"])
def test_beluga_cedar_graham_narval(self, system, monkeypatch):
monkeypatch.setattr(salishsea_cmd.run, "SYSTEM", system)

modules = salishsea_cmd.run._modules()
Expand Down

0 comments on commit cdea3eb

Please sign in to comment.