-
Notifications
You must be signed in to change notification settings - Fork 131
Replace bash env files with modules #238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
danielabdi-noaa
merged 29 commits into
ufs-community:develop
from
danielabdi-noaa:feature/modules
May 1, 2022
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
7fa8d3e
Pass machine name to build scripts.
danielabdi-noaa dbc9d2f
Use modules environment instead of shell scripts.
danielabdi-noaa f4e8232
Leave conda activation to the user.
danielabdi-noaa 3235ef4
Remove set_machine script.
danielabdi-noaa 6e352ec
Rename env to modulefiles
danielabdi-noaa 9e5d2ad
Minor fix.
danielabdi-noaa 9a13ae2
Merge branch 'develop' into feature/modules
danielabdi-noaa 27e5174
Minor fix
danielabdi-noaa 5a72fdc
Take out *module purge* from modufiles and put it in devbuild.sh
danielabdi-noaa 5e3a525
Activate conda directly in signularity modulefile.
danielabdi-noaa e4a8c8c
Minor fixes.
danielabdi-noaa 290e269
Merge branch 'develop' into feature/modules
danielabdi-noaa 2189a2f
Add Gaea modulefiles.
danielabdi-noaa c53859a
Restore odin env files.
danielabdi-noaa c7c2970
Bug fixes in singularity modulefiles.
danielabdi-noaa 6e305ac
Merge branch 'develop' into feature/modules
danielabdi-noaa 569d32a
Move activation of Lmod to devbuild.sh
danielabdi-noaa f1583e8
Don't do 'module purge' on cray systems
danielabdi-noaa 8be4258
Put Lmod initialization code in separate script.
danielabdi-noaa 7bb0487
Go back to using modulefile for odin.
danielabdi-noaa ed44471
Optionally pass machine name to lmod-setup.sh
danielabdi-noaa b1bf8f9
Modify odin wflow modulefile.
danielabdi-noaa ac4d3d0
Allow unknown platforms in devbuild.sh
danielabdi-noaa 25c0ea9
Update documentation.
danielabdi-noaa 376b47a
Move cmake init out of lmod-setup.sh on odin
danielabdi-noaa bb06ae8
Also update markup language build documentation.
danielabdi-noaa 754cb6f
Lmod setup script for both bash and tcsh login shells.
danielabdi-noaa 7eb75fa
Some fixes for tcsh login shell.
danielabdi-noaa 20b19db
Add singularity platform to lmod-setup
danielabdi-noaa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.