-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
2,808 additions
and
2,492 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
Submodule CMEPS
updated
8 files
+35 −14 | cesm/driver/esm.F90 | |
+30 −10 | mediator/med.F90 | |
+3 −3 | mediator/med_fraction_mod.F90 | |
+6 −2 | mediator/med_internalstate_mod.F90 | |
+20 −21 | mediator/med_io_mod.F90 | |
+55 −51 | mediator/med_map_mod.F90 | |
+17 −31 | mediator/med_phases_history_mod.F90 | |
+4 −0 | mediator/med_phases_restart_mod.F90 |
Submodule FV3
updated
8 files
+1 −0 | CMakeLists.txt | |
+29 −25 | atmos_model.F90 | |
+0 −1 | cpl/module_cap_cpl.F90 | |
+25 −17 | cpl/module_cplfields.F90 | |
+203 −0 | cpl/module_cplscalars.F90 | |
+53 −2 | fv3_cap.F90 | |
+127 −55 | io/module_write_netcdf.F90 | |
+25 −1 | module_fcst_grid_comp.F90 |
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
Submodule noahmp
updated
4 files
+4 −3 | CMakeLists.txt | |
+192 −0 | drivers/nuopc/lnd_comp_cplscalars.F90 | |
+78 −34 | drivers/nuopc/lnd_comp_import_export.F90 | |
+59 −8 | drivers/nuopc/lnd_comp_nuopc.F90 |
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 +1 @@ | ||
export BL_DATE=20240315 | ||
export BL_DATE=20240401 |
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,111 +1,113 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
# This script checks if head repo of PR is up to date with ufs-weather-model develop | ||
# Checks for top level (ufs-weather-model) and next level components (submodules) | ||
result() { | ||
if [[ -n $comment ]]; then | ||
logID=$1 | ||
comment="@$logID please bring these up to date with respective authoritative repositories\n"$comment | ||
printf %s "$comment" | ||
#exit 1 | ||
fi | ||
#set -eu | ||
|
||
get_shas () { | ||
cwd=$(pwd) | ||
# Get sha-1's of the top of develop and feature branches | ||
app="Accept: application/vnd.github.v3+json" | ||
url=$1 | ||
gitapi=$2 | ||
branch=$3 | ||
base_sha=$(curl -sS -H "$app" $gitapi | jq -r '.commit.sha') | ||
workspace=$4 | ||
cd $workspace | ||
git remote add upstream $url | ||
git fetch -q upstream $branch | ||
common=$(git merge-base $base_sha @) | ||
echo $common $base_sha $workspace | ||
if [[ $common != $base_sha ]]; then | ||
printf "%s\n\n" "** $workspace **NOT** up to date" | ||
flag_sync=false | ||
fi | ||
cd $cwd | ||
} | ||
|
||
# Declare variables | ||
declare -A base fv3 mom6 cice ww3 stoch gocart cmeps cdeps hycom cmake ccpp-framework ccpp-physics atmos_cubed_sphere | ||
submodules="fv3 mom6 cice ww3 stoch gocart cmeps cdeps hycom cmake ccpp-framework ccpp-physics atmos_cubed_sphere" | ||
comment='' | ||
ownerID=$1 | ||
|
||
# Base branch: this is the top of develop of ufs-weather-model | ||
base[repo]='https://github.com/ufs-community/ufs-weather-model' | ||
base[branch]='develop' | ||
|
||
# Submodules to check | ||
fv3[repo]='https://github.com/NOAA-EMC/fv3atm' | ||
fv3[branch]='develop' | ||
fv3[dir]='FV3' | ||
|
||
mom6[repo]='https://github.com/NOAA-EMC/MOM6' | ||
mom6[branch]='dev/emc' | ||
mom6[dir]='MOM6-interface/MOM6' | ||
|
||
cice[repo]='https://github.com/NOAA-EMC/CICE' | ||
cice[branch]='emc/develop' | ||
cice[dir]='CICE-interface/CICE' | ||
|
||
ww3[repo]='https://github.com/NOAA-EMC/WW3' | ||
ww3[branch]='dev/ufs-weather-model' | ||
ww3[dir]='WW3' | ||
|
||
stoch[repo]='https://github.com/noaa-psl/stochastic_physics' | ||
stoch[branch]='master' | ||
stoch[dir]='stochastic_physics' | ||
|
||
gocart[repo]='https://github.com/GEOS-ESM/GOCART' | ||
gocart[branch]='develop' | ||
gocart[dir]='GOCART' | ||
|
||
cmeps[repo]='https://github.com/NOAA-EMC/CMEPS' | ||
cmeps[branch]='emc/develop' | ||
cmeps[dir]='CMEPS-interface/CMEPS' | ||
|
||
cdeps[repo]='https://github.com/NOAA-EMC/CDEPS' | ||
cdeps[branch]='develop' | ||
cdeps[dir]='CDEPS-interface/CDEPS' | ||
|
||
hycom[repo]='https://github.com/NOAA-EMC/HYCOM-src' | ||
hycom[branch]='emc/develop' | ||
hycom[dir]='HYCOM-interface/HYCOM' | ||
|
||
cmake[repo]='https://github.com/NOAA-EMC/CMakeModules' | ||
cmake[branch]='develop' | ||
cmake[dir]='CMakeModules' | ||
|
||
ccpp-framework[repo]='https://github.com/NCAR/ccpp-framework' | ||
ccpp-framework[branch]='main' | ||
ccpp-framework[dir]='FV3/ccpp/framework' | ||
|
||
ccpp-physics[repo]='https://github.com/ufs-community/ccpp-physics' | ||
ccpp-physics[branch]='ufs/dev' | ||
ccpp-physics[dir]='FV3/ccpp/physics' | ||
|
||
#upp[repo]='https://github.com/NOAA-EMC/UPP' | ||
#upp[branch]='develop' | ||
#upp[dir]='upp' | ||
|
||
atmos_cubed_sphere[repo]='https://github.com/NOAA-GFDL/GFDL_atmos_cubed_sphere' | ||
atmos_cubed_sphere[branch]='dev/emc' | ||
atmos_cubed_sphere[dir]='FV3/atmos_cubed_sphere' | ||
|
||
# Get sha-1's of the top of develop of ufs-weather-model | ||
app="Accept: application/vnd.github.v3+json" | ||
url="https://api.github.com/repos/ufs-community/ufs-weather-model/branches/develop" | ||
base[sha]=$(curl -sS -H "$app" $url | jq -r '.commit.sha') | ||
flag_sync=true | ||
|
||
declare -A urls branches pathes | ||
submodules="base fv3 mom6 cice ww3 stoch cmeps cdeps hycom ccpp_physics aqm noahmp cubed_sphere" | ||
|
||
urls[base]='https://github.com/ufs-community/ufs-weather-model' | ||
branches[base]='develop' | ||
pathes[base]='' | ||
|
||
urls[fv3]='https://github.com/NOAA-EMC/fv3atm' | ||
branches[fv3]='develop' | ||
pathes[fv3]='FV3' | ||
|
||
urls[mom6]='https://github.com/NOAA-EMC/MOM6' | ||
branches[mom6]='dev/emc' | ||
pathes[mom6]='MOM6-interface/MOM6' | ||
|
||
urls[cice]='https://github.com/NOAA-EMC/CICE' | ||
branches[cice]='emc/develop' | ||
pathes[cice]='CICE-interface/CICE' | ||
|
||
urls[ww3]='https://github.com/NOAA-EMC/WW3' | ||
branches[ww3]='dev/ufs-weather-model' | ||
pathes[ww3]='WW3' | ||
|
||
urls[stoch]='https://github.com/noaa-psl/stochastic_physics' | ||
branches[stoch]='master' | ||
pathes[stoch]='stochastic_physics' | ||
|
||
urls[gocart]='https://github.com/GEOS-ESM/GOCART' | ||
branches[gocart]='develop' | ||
pathes[gocart]='GOCART' | ||
|
||
urls[cmeps]='https://github.com/NOAA-EMC/CMEPS' | ||
branches[cmeps]='emc/develop' | ||
pathes[cmeps]='CMEPS-interface/CMEPS' | ||
|
||
urls[cdeps]='https://github.com/NOAA-EMC/CDEPS' | ||
branches[cdeps]='develop' | ||
pathes[cdeps]='CDEPS-interface/CDEPS' | ||
|
||
urls[hycom]='https://github.com/NOAA-EMC/HYCOM-src' | ||
branches[hycom]='emc/develop' | ||
pathes[hycom]='HYCOM-interface/HYCOM' | ||
|
||
urls[cmake]='https://github.com/NOAA-EMC/CMakeModules' | ||
branches[cmake]='develop' | ||
pathes[cmake]='CMakeModules' | ||
|
||
urls[ccpp_physics]='https://github.com/ufs-community/ccpp-physics' | ||
branches[ccpp_physics]='ufs/dev' | ||
pathes[ccpp_physics]='FV3/ccpp/physics' | ||
|
||
urls[ccpp_framework]='https://github.com/NCAR/ccpp-framework' | ||
branches[ccpp_framework]='main' | ||
pathes[ccpp_framework]='FV3/ccpp/framework' | ||
|
||
urls[aqm]='https://github.com/NOAA-EMC/AQM' | ||
branches[aqm]='develop' | ||
pathes[aqm]='AQM' | ||
|
||
urls[noahmp]='https://github.com/NOAA-EMC/noahmp' | ||
branches[noahmp]='develop' | ||
pathes[noahmp]='NOAHMP-interface/noahmp' | ||
|
||
#urls[upp]='https://github.com/NOAA-EMC/UPP' | ||
#branches[upp]='develop' | ||
#pathes[upp]='upp' | ||
|
||
urls[cubed_sphere]='https://github.com/NOAA-GFDL/GFDL_atmos_cubed_sphere' | ||
branches[cubed_sphere]='dev/emc' | ||
pathes[cubed_sphere]='FV3/atmos_cubed_sphere' | ||
|
||
for submodule in $submodules; do | ||
eval url=https://api.github.com/repos/ufs-community/ufs-weather-model/contents/'${'$submodule'[dir]}' | ||
eval $submodule'[sha]=$(curl -sS -H "$app" $url | jq -r '.sha')' | ||
url=${urls[$submodule]} | ||
branch=${branches[$submodule]} | ||
workspace=${GITHUB_WORKSPACE}'/'${pathes[$submodule]} | ||
gitapi=$(echo "$url" | sed 's/github.com/api.github.com\/repos/g')'/branches/'$branch | ||
get_shas $url $gitapi $branch $workspace | ||
done | ||
|
||
# Check if the head branch is up to date with the base branch | ||
cd ${GITHUB_WORKSPACE} | ||
git remote add upstream ${base[repo]} | ||
git fetch -q upstream ${base[branch]} | ||
common=$(git merge-base ${base[sha]} @) | ||
if [[ $common != ${base[sha]} ]]; then | ||
comment="* ufs-weather-model **NOT** up to date\n" | ||
if [[ ! $flag_sync ]]; then | ||
echo "** ${GITHUB_WORKSPACE} **NOT** up to date" | ||
exit 1 | ||
fi | ||
|
||
for submodule in $submodules; do | ||
eval cd ${GITHUB_WORKSPACE}/'${'$submodule'[dir]}' | ||
eval git remote add upstream '${'$submodule'[repo]}' | ||
eval git fetch -q upstream '${'$submodule'[branch]}' | ||
common=$(eval git merge-base '${'$submodule'[sha]}' @) | ||
if (eval test $common != '${'$submodule'[sha]}'); then | ||
comment+="* $submodule **NOT** up to date\n" | ||
fi | ||
done | ||
echo "** ${GITHUB_WORKSPACE} up to date **" | ||
|
||
result $ownerID | ||
exit 0 |
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.