-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update syntax for latest version of lmod. (#542)
## DESCRIPTION OF CHANGES: This PR addresses an error that occurs at run time ```ModuleNotFoundError: No module named 'f90nml'```. A similar error may appear in any of the tasks that use a conda environment, and could potentially list `jinja2` instead. The version of lmod on Hera was updated. The behavior of the `system` command has changed and now runs only in a subshell. As an lmod-version-independent fix, the module will no longer activate a conda environment, but will set the conda environment that should be activated through an environment variable, then the script will activate any required conda environment. Note: Users who do not run with Rocoto, but still use these modules, will have an extra step of activating the conda environment manually. ## TESTS CONDUCTED: Built and ran a single WE2E test (grid_RRFS_CONUS_25km_ics_FV3GFS_lbcs_FV3GFS_suite_GFS_v15p2) successfully on Hera with these modifications, as well as a WE2E test (DOT_OR_USCORE) on Orion as a sanity check.
- Loading branch information
1 parent
4d6ff80
commit 9f0d3e1
Showing
13 changed files
with
35 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#%Module | ||
module use -a /contrib/miniconda3/modulefiles | ||
module load miniconda3 | ||
if [module-info mode load] { | ||
system "conda activate regional_workflow" | ||
} | ||
|
||
setenv SRW_ENV regional_workflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#%Module | ||
module use -a /contrib/miniconda3/modulefiles | ||
module load miniconda3 | ||
if [module-info mode load] { | ||
system "conda activate regional_workflow" | ||
} | ||
|
||
setenv SRW_ENV regional_workflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#%Module | ||
module use -a /contrib/miniconda3/modulefiles | ||
module load miniconda3 | ||
if [module-info mode load] { | ||
system "conda activate regional_workflow" | ||
} | ||
|
||
setenv SRW_ENV regional_workflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#%Module | ||
module use -a /contrib/miniconda3/modulefiles | ||
module load miniconda3 | ||
if [module-info mode load] { | ||
system "conda activate regional_workflow" | ||
} | ||
|
||
setenv SRW_ENV regional_workflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#%Module | ||
module use -a /contrib/miniconda3/modulefiles | ||
module load miniconda3 | ||
if [module-info mode load] { | ||
system "conda activate regional_workflow" | ||
} | ||
|
||
setenv SRW_ENV regional_workflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#%Module | ||
module use -a /contrib/miniconda3/modulefiles | ||
module load miniconda3 | ||
if [module-info mode load] { | ||
system "conda activate regional_workflow" | ||
} | ||
|
||
setenv SRW_ENV regional_workflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#%Module | ||
module use -a /apps/contrib/miniconda3-noaa-gsl/modulefiles | ||
module load miniconda3 | ||
if [module-info mode load] { | ||
system "conda activate regional_workflow" | ||
} | ||
|
||
setenv SRW_ENV regional_workflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#%Module | ||
module use -a /apps/contrib/miniconda3-noaa-gsl/modulefiles | ||
module load miniconda3 | ||
if [module-info mode load] { | ||
system "conda activate regional_workflow" | ||
} | ||
|
||
setenv SRW_ENV regional_workflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#%Module | ||
module use -a /apps/contrib/miniconda3-noaa-gsl/modulefiles | ||
module load miniconda3 | ||
if [module-info mode load] { | ||
system "conda activate regional_workflow" | ||
} | ||
|
||
setenv SRW_ENV regional_workflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#%Module | ||
module use -a /apps/contrib/miniconda3-noaa-gsl/modulefiles | ||
module load miniconda3 | ||
if [module-info mode load] { | ||
system "conda activate regional_workflow" | ||
} | ||
|
||
setenv SRW_ENV regional_workflow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters