-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace bash env files with modules (#238)
* Pass machine name to build scripts. * Use modules environment instead of shell scripts. * Leave conda activation to the user. * Remove set_machine script. * Rename env to modulefiles * Minor fix. * Minor fix * Take out *module purge* from modufiles and put it in devbuild.sh * Activate conda directly in signularity modulefile. * Minor fixes. * Add Gaea modulefiles. * Restore odin env files. * Bug fixes in singularity modulefiles. * Move activation of Lmod to devbuild.sh * Don't do 'module purge' on cray systems * Put Lmod initialization code in separate script. * Go back to using modulefile for odin. * Optionally pass machine name to lmod-setup.sh * Modify odin wflow modulefile. * Allow unknown platforms in devbuild.sh * Update documentation. * Move cmake init out of lmod-setup.sh on odin * Also update markup language build documentation. * Lmod setup script for both bash and tcsh login shells. * Some fixes for tcsh login shell. * Add singularity platform to lmod-setup
- Loading branch information
1 parent
d8340a7
commit 74d9249
Showing
44 changed files
with
706 additions
and
532 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
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,13 +1,22 @@ | ||
# Users should load the appropriate python environment for the workflow. | ||
# The workflow requires Python 3, with the packages 'PyYAML', 'Jinja2', and 'f90nml' available. | ||
|
||
# For users' convenience, the python environment for the workflow is put in 'ufs-srweather-app/env/wflow_[machine].env'. | ||
# When generating a workflow experiment or running a workflow, users can use this file for a specific machine. | ||
# For users' convenience, the python environment for the workflow can be activated by loading wflow_[PLATFORM] modulefile | ||
|
||
# For example, on Hera: | ||
|
||
cd ufs-srweather-app/env | ||
source wflow_hera.env | ||
module load wflow_hera | ||
|
||
# Due to older version of Lmod, inconsistency with TCL modulefiles etc, you may have to activate | ||
# conda manually using instructions that the previous module command prints. | ||
# Hera is one of those systems, so execute: | ||
|
||
conda activate regional_workflow | ||
|
||
# After that we can setup an experiment in the directory | ||
|
||
cd regional_workflow/ush | ||
|
||
# Once we prepare experiment file config.sh, we can generate workflow using | ||
|
||
cd ../regional_workflow/ush | ||
./generate_FV3LAM_wflow.sh |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.