forked from E3SM-Project/E3SM
-
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.
Merge branch 'beharrop/atm/cre_experiments' of github.com:beharrop/E3…
…SM into beharrop/atm/cre_experiments Merge in machine updates
- Loading branch information
Showing
38 changed files
with
1,368 additions
and
389 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
# Replace all ssh URLs to submodules with HTTP URLs | ||
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | ||
git submodule update --init | ||
cd components/mpas-source | ||
sed -i 's/[email protected]:/https:\/\/github.com\//' .gitmodules | ||
git submodule update --init --recursive |
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,13 @@ | ||
version: 2.1 | ||
jobs: | ||
build: | ||
machine: | ||
image: ubuntu-2004:202010-01 | ||
steps: | ||
- checkout | ||
- run: bash .circleci/setup.sh | ||
- run: bash .circleci/checkout.sh | ||
- run: wget https://dabdceba-6d04-11e5-ba46-22000b92c6ec.e.globus.org/containers/public/e3sm.sif | ||
- run: | ||
command: singularity exec --hostname singularity e3sm.sif .circleci/run.sh | ||
no_output_timeout: 60m |
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,70 @@ | ||
#!/bin/bash | ||
|
||
case="master.A_WCYCL1850.ne4_oQU240.baseline" | ||
compset="A_WCYCL1850" | ||
res="ne4_oQU240" | ||
|
||
log_dir="${HOME}/projects/e3sm/scratch/$case" | ||
|
||
shopt -s extglob | ||
shopt -s nullglob | ||
|
||
function command_yellow | ||
{ | ||
echo -e "\e[33m\$ $1\e[0m" | ||
eval $1 | ||
return $? | ||
} | ||
|
||
function command_yellow_rc | ||
{ | ||
command_yellow "$1" | ||
rc=$? | ||
if [ $rc -ne 0 ]; then | ||
exit $rc | ||
fi | ||
} | ||
|
||
function print_bldlog | ||
{ | ||
bldlog=$1 | ||
bldlog_path=(${log_dir}/bld/$bldlog.bldlog.+([[:digit:]])-+([[:digit:]])) | ||
if [ -n "${bldlog_path}" ]; then | ||
command_yellow "cat ${bldlog_path}" | ||
fi | ||
} | ||
|
||
function print_runlog | ||
{ | ||
runlog=$1 | ||
runlog_path=(${log_dir}/run/$runlog.log.+([[:digit:]])-+([[:digit:]])) | ||
if [ -n "${runlog_path}" ]; then | ||
command_yellow "cat ${runlog_path}" | ||
return 1 | ||
else | ||
return 0 | ||
fi | ||
} | ||
|
||
command_yellow_rc "mkdir -p $HOME/projects/e3sm/cesm-inputdata" | ||
command_yellow_rc "cd cime/scripts" | ||
command_yellow_rc "./create_newcase --case $case --compset $compset --res $res" | ||
command_yellow_rc "cd $case" | ||
command_yellow_rc "./xmlchange GMAKE_J=2" | ||
command_yellow_rc "./case.setup" | ||
command_yellow "./case.build -v" | ||
rc=$? | ||
if [ $rc -ne 0 ]; then | ||
print_bldlog "e3sm" | ||
print_bldlog "csm_share" | ||
print_bldlog "pio" | ||
print_bldlog "mct" | ||
print_bldlog "gptl" | ||
exit $rc | ||
fi | ||
|
||
# Unfortunately, case.submit always return 0, even if it fails. | ||
# To find out if it succeeded, we check if the run log has been gzipped. | ||
#command_yellow "./case.submit" | ||
#print_runlog "e3sm" | ||
#exit $? |
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,14 @@ | ||
#!/bin/bash | ||
|
||
go version | ||
|
||
# Install Singularity | ||
export VERSION=3.5.3 && # adjust this as necessary \ | ||
wget https://github.com/sylabs/singularity/releases/download/v${VERSION}/singularity-${VERSION}.tar.gz && \ | ||
tar -xzf singularity-${VERSION}.tar.gz && \ | ||
cd singularity | ||
./mconfig && \ | ||
make -C ./builddir && \ | ||
sudo make -C ./builddir install | ||
|
||
singularity --version |
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
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
Oops, something went wrong.