forked from NOAA-EMC/RDASApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
streamline the module load process and the rrfs-test process (NOAA-EM…
…C#141) Simplify the module load process and the rrfs-test step so that each can be done with one simple command.
- Loading branch information
1 parent
b220867
commit 97afb4b
Showing
6 changed files
with
59 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
# | ||
# Check if the script is sourced | ||
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then | ||
echo "Usage: source ${0}" | ||
exit 1 | ||
fi | ||
|
||
### scripts continues here... | ||
ushdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
source ${ushdir}/detect_machine.sh | ||
|
||
module purge | ||
module use ${ushdir}/../modulefiles | ||
module load EVA/${MACHINE_ID} | ||
module list |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
# | ||
# Check if the script is sourced | ||
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then | ||
echo "Usage: source ${0}" | ||
exit 1 | ||
fi | ||
|
||
### scripts continues here... | ||
ushdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
source ${ushdir}/detect_machine.sh | ||
|
||
module purge | ||
module use ${ushdir}/../modulefiles | ||
module load RDAS/${MACHINE_ID}.intel | ||
module list |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
# | ||
export SLURM_ACCOUNT=${1} | ||
|
||
if [[ "${1}" == "" ]]; then | ||
echo "Usage: ${0} account_name" | ||
exit 1 | ||
fi | ||
|
||
# | ||
ushdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
source ${ushdir}/load_rdas.sh | ||
|
||
set -x | ||
cd ${ushdir}/../build/rrfs-test | ||
pwd | ||
ctest # or ctest -VV for verbose outputs |