Skip to content

Commit

Permalink
Remove option to set CCPP suites from command line
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterKolczynski-NOAA committed May 17, 2022
1 parent 1afd787 commit a3ad198
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions sorc/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ function _usage() {
Builds all of the global-workflow components by calling the individual build
scripts in sequence.
Usage: $BASH_SOURCE [-a UFS_app][-c build_config][-h][-s CCPP_SUITES][-v]
Usage: $BASH_SOURCE [-a UFS_app][-c build_config][-h][-v]
-a UFS_app:
Build a specific UFS app instead of the default
-c build_config:
Selectively build based on the provided config instead of the default config
-h:
print this help message and exit
-s CCPP_SUITES:
Build UFS with given comma-separated list of CCPP suites instead of default list
-v:
Execute all build scripts with -v option to turn on verbose where supported
Expand All @@ -36,12 +34,12 @@ _build_ufs_opt=""
_verbose_opt=""
# Reset option counter in case this script is sourced
OPTIND=1
while getopts ":a:c:s:hv" option; do
while getopts ":a:c:hv" option; do
case "${option}" in
a) _build_ufs_opt+="-a ${OPTARG} ";;
c) _partial_opt+="-c ${OPTARG} ";;
h) _usage;;
s) _build_ufs_opt+="-s ${OPTARG} ";;
# s) _build_ufs_opt+="-s ${OPTARG} ";;
v) _verbose_opt="-v";;
\?)
echo "Unrecognized option: ${option}"
Expand Down
2 changes: 1 addition & 1 deletion sorc/build_ufs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CCPP_SUITES="FV3_GFS_v16,FV3_GFS_v16_RRTMGP,FV3_GFS_v16_ugwpv1,FV3_GFS_v17_p8,FV
while getopts "a:s:v" option; do
case "${option}" in
a) APP="${OPTARG}" ;;
s) CCPP_SUITES="${OPTARG}";;
# s) CCPP_SUITES="${OPTARG}";;
v) BUILD_VERBOSE="YES";;
*)
echo "Unrecognized option: ${1}"
Expand Down

0 comments on commit a3ad198

Please sign in to comment.