Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions Externals.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,11 @@ required = True

[ufs_utils]
protocol = git
repo_url = https://github.com/NCAR/UFS_UTILS
repo_url = https://github.com/JeffBeck-NOAA/UFS_UTILS
# Specify either a branch name or a hash but not both.
#branch = dtc/develop
hash = 6c9db728
local_path = src/UFS_UTILS_develop
required = True

[ufs_utils_chgres]
protocol = git
repo_url = https://github.com/NCAR/UFS_UTILS
# Specify either a branch name or a hash but not both.
#branch = feature/chgres_grib2
hash = 53193694
local_path = src/UFS_UTILS_chgres_grib2
branch = feature/regional_release
#hash = 6c9db728
local_path = src/UFS_UTILS
required = True

[ufs_weather_model]
Expand All @@ -37,8 +28,8 @@ required = True
protocol = git
repo_url = https://github.com/NOAA-EMC/EMC_post
# Specify either a branch name or a hash but not both.
#branch = develop
hash = dceca26
branch = release/public-v2
#hash =
local_path = src/EMC_post
required = True

Expand Down
50 changes: 50 additions & 0 deletions src/build_UFS_UTILS.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/bin/sh
#==========================================================================
#
# Description: Builds chgres, chgres_cube, orog, fre-nctools, sfc_climo_gen,
# regional_grid, global_equiv_resol, and mosaic_file.
#
# Usage: ./build_UFS_UTILS.sh
#
#==========================================================================
set -eux
cwd=`pwd`

build_dir="${cwd}"
UFS_UTILS="${cwd}/UFS_UTILS"
export USE_PREINST_LIBS="true"

#------------------------------------
# END USER DEFINED STUFF
#------------------------------------

logs_dir=${cwd}/logs
if [ ! -d $logs_dir ]; then
echo "Creating logs folder"
mkdir $logs_dir
fi

#------------------------------------
# INCLUDE PARTIAL BUILD
#------------------------------------

. ./partial_build.sh

#------------------------------------
# build UFS_UTILS
#------------------------------------
$Build_UFS_UTILS && {
echo " .... Building UFS_UTILS .... "
cd $UFS_UTILS
./build_all.sh > $logs_dir/build_UFS_UTILS.log 2>&1
if [ $? -eq 0 ] ; then
echo "UFS_UTILS build SUCCEEDED"
else
echo "UFS_UTILS build FAILED see $logs_dir/build_UFS_UTILS.log"
exit 1
fi
}

cd $build_dir

echo 'Building UFS_UTILS done'
12 changes: 6 additions & 6 deletions src/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ fi
}

#------------------------------------
# build utils
# build UTILS
#------------------------------------
$Build_utils && {
echo " .... Building utils .... "
./build_utils.sh > $logs_dir/build_utils.log 2>&1
$Build_UFS_UTILS && {
echo " .... Building UFS_UTILS .... "
./build_UFS_UTILS.sh > $logs_dir/build_UFS_UTILS.log 2>&1
if [ $? -eq 0 ] ; then
echo "Utils build SUCCEEDED"
echo "UFS_UTILS build SUCCEEDED"
else
echo "Utils build FAILED see $logs_dir/build_utils.log"
echo "UFS_UTILS build FAILED see $logs_dir/build_UFS_UTILS.log"
exit 1
fi
}
Expand Down
128 changes: 0 additions & 128 deletions src/build_regional_grid.sh

This file was deleted.

158 changes: 0 additions & 158 deletions src/build_utils.sh

This file was deleted.

Loading