-
Notifications
You must be signed in to change notification settings - Fork 87
Feature/singularity addition #686
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
jkbk2004
merged 10 commits into
ufs-community:develop
from
EdwardSnyder-NOAA:feature/singularity-addition
Mar 4, 2022
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
6a8dd6c
Create singularity.sh
EdwardSnyder-NOAA f0da957
added machine/sing script for review
jkbk2004 6a92b4f
added singularity machine value
jkbk2004 a767c9e
fixed mpirun command name and options: singularity
jkbk2004 ff2b582
cleaned up singularity script
EdwardSnyder-NOAA 59c51d7
Merge branch 'develop' into feature/singularity-addition
EdwardSnyder-NOAA 3218a57
Update valid_param_vals.sh
EdwardSnyder-NOAA 6e39b30
Update singularity.sh
EdwardSnyder-NOAA 3f31f27
Update singularity.sh
EdwardSnyder-NOAA 027d9bd
Update singularity.sh
EdwardSnyder-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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -x | ||
|
gsketefian marked this conversation as resolved.
Outdated
|
||
|
|
||
| function file_location() { | ||
|
|
||
| # Return the default location of external model files on disk | ||
|
|
||
| local external_file_fmt external_model location | ||
|
|
||
| external_model=${1} | ||
| external_file_fmt=${2} | ||
|
|
||
| case ${external_model} in | ||
|
|
||
| "*") | ||
| print_info_msg"\ | ||
| External model \'${external_model}\' does not have a default | ||
| location. Please set a user-defined file location." | ||
| ;; | ||
|
|
||
| esac | ||
| echo ${location:-} | ||
|
|
||
| } | ||
|
|
||
|
|
||
| EXTRN_MDL_SYSBASEDIR_ICS=${EXTRN_MDL_SYSBASEDIR_ICS:-$(file_location \ | ||
| ${EXTRN_MDL_NAME_ICS} \ | ||
| ${FV3GFS_FILE_FMT_ICS})} | ||
| EXTRN_MDL_SYSBASEDIR_LBCS=${EXTRN_MDL_SYSBASEDIR_LBCS:-$(file_location \ | ||
| ${EXTRN_MDL_NAME_LBCS} \ | ||
| ${FV3GFS_FILE_FMT_ICS})} | ||
|
|
||
| # System scripts to source to initialize various commands within workflow | ||
| # scripts (e.g. "module"). | ||
| if [ -z ${ENV_INIT_SCRIPTS_FPS:-""} ]; then | ||
| ENV_INIT_SCRIPTS_FPS=( "/etc/profile" ) | ||
| fi | ||
|
|
||
| # Commands to run at the start of each workflow task. | ||
| PRE_TASK_CMDS='{ ulimit -s unlimited; ulimit -a; }' | ||
|
|
||
| # System Installations | ||
|
gsketefian marked this conversation as resolved.
Outdated
|
||
| MODULE_INIT_PATH=${MODULE_INIT_PATH:-/usr/share/lmod/6.6/init/profile} | ||
|
|
||
| # Architecture information | ||
| WORKFLOW_MANAGER="rocoto" | ||
| NCORES_PER_NODE=${NCORES_PER_NODE:-40} | ||
| SCHED=${SCHED:-"slurm"} | ||
| PARTITION_DEFAULT=${PARTITION_DEFAULT:-""} | ||
| QUEUE_DEFAULT=${QUEUE_DEFAULT:-"batch"} | ||
| PARTITION_HPSS=${PARTITION_HPSS:-"service"} | ||
| QUEUE_HPSS=${QUEUE_HPSS:-"batch"} | ||
| PARTITION_FCST=${PARTITION_FCST:-""} | ||
| QUEUE_FCST=${QUEUE_FCST:-"batch"} | ||
|
|
||
| # UFS SRW App specific paths | ||
| FIXgsm=${FIXgsm:-"/contrib/global/glopara/fix/fix_am"} | ||
| FIXaer=${FIXaer:-"/contrib/global/glopara/fix/fix_aer"} | ||
| FIXlut=${FIXlut:-"/contrib/global/glopara/fix/fix_lut"} | ||
| TOPO_DIR=${TOPO_DIR:-"/contrib/global/glopara/fix/fix_orog"} | ||
| SFC_CLIMO_INPUT_DIR=${SFC_CLIMO_INPUT_DIR:-"/contrib/global/glopara/fix/fix_sfc_climo"} | ||
| FIXLAM_NCO_BASEDIR=${FIXLAM_NCO_BASEDIR:-"/needs/to/be/specified"} | ||
|
|
||
| RUN_CMD_SERIAL="time" | ||
| RUN_CMD_UTILS='mpirun -np $nprocs --oversubscribe' | ||
| RUN_CMD_FCST='mpirun -n ${PE_MEMBER01} --oversubscribe' | ||
| RUN_CMD_POST='mpirun -np $nprocs --oversubscribe' | ||
|
|
||
|
EdwardSnyder-NOAA marked this conversation as resolved.
Outdated
|
||
| # Test Data Locations | ||
| TEST_EXTRN_MDL_SOURCE_BASEDIR=/contrib/gsd-fv3-dev/gsketefia/UFS/staged_extrn_mdl_files | ||
|
EdwardSnyder-NOAA marked this conversation as resolved.
Outdated
|
||
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
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.