-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CCPP suite and FASTER option to UFS build #2521
Changes from 1 commit
dadecee
0be66ff
9c1a384
a14547d
ed8bdf6
3d0c89a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ function _usage() { | |
Builds all of the global-workflow components by calling the individual build | ||
scripts in sequence. | ||
|
||
Usage: ${BASH_SOURCE[0]} [-a UFS_app][-c build_config][-d][-h][-j n][-v][-w] | ||
Usage: ${BASH_SOURCE[0]} [-a UFS_app][-c build_config][-d][-h][-j n][-v][-w][-f] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please maintain alphabetical order for the new option throughout this script. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, thanks! |
||
-a UFS_app: | ||
Build a specific UFS app instead of the default | ||
-d: | ||
|
@@ -35,6 +35,8 @@ Usage: ${BASH_SOURCE[0]} [-a UFS_app][-c build_config][-d][-h][-j n][-v][-w] | |
Execute all build scripts with -v option to turn on verbose where supported | ||
-w: | ||
Use structured wave grid | ||
-f: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be moved up to be in alphabetical order as well. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. Thanks! |
||
Build the UFS model using the -DFASTER=ON option | ||
EOF | ||
exit 1 | ||
} | ||
|
@@ -53,9 +55,10 @@ _build_job_max=20 | |
_quick_kill="NO" | ||
# Reset option counter in case this script is sourced | ||
OPTIND=1 | ||
while getopts ":a:dghj:kuvw" option; do | ||
while getopts ":a:dghj:kuvwf" option; do | ||
case "${option}" in | ||
a) _build_ufs_opt+="-a ${OPTARG} ";; | ||
f) _build_ufs_opt+="-j ";; | ||
guoqing-noaa marked this conversation as resolved.
Show resolved
Hide resolved
|
||
d) _build_debug="-d" ;; | ||
g) _build_gsi="YES" ;; | ||
h) _usage;; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,16 +5,17 @@ cwd=$(pwd) | |
|
||
# Default settings | ||
APP="S2SWA" | ||
CCPP_SUITES="FV3_GFS_v17_p8_ugwpv1,FV3_GFS_v17_coupled_p8_ugwpv1" # TODO: does the g-w need to build with all these CCPP_SUITES? | ||
CCPP_SUITES="FV3_GFS_v17_p8_ugwpv1,FV3_GFS_v17_coupled_p8_ugwpv1,FV3_global_nest_v1" # TODO: does the g-w need to build with all these CCPP_SUITES? | ||
PDLIB="ON" | ||
|
||
while getopts ":da:j:vw" option; do | ||
while getopts ":da:j:vwf" option; do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These should be in alphabetical order as well. I recognize the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sounds good. thanks! |
||
case "${option}" in | ||
d) BUILD_TYPE="Debug";; | ||
a) APP="${OPTARG}";; | ||
j) BUILD_JOBS="${OPTARG}";; | ||
v) export BUILD_VERBOSE="YES";; | ||
w) PDLIB="OFF";; | ||
f) FASTER="ON";; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please place this after the |
||
:) | ||
echo "[${BASH_SOURCE[0]}]: ${option} requires an argument" | ||
;; | ||
|
@@ -31,7 +32,11 @@ source "./tests/module-setup.sh" | |
|
||
MAKE_OPT="-DAPP=${APP} -D32BIT=ON -DCCPP_SUITES=${CCPP_SUITES}" | ||
[[ ${PDLIB:-"OFF"} = "ON" ]] && MAKE_OPT+=" -DPDLIB=ON" | ||
[[ ${BUILD_TYPE:-"Release"} = "Debug" ]] && MAKE_OPT+=" -DDEBUG=ON" | ||
if [[ ${BUILD_TYPE:-"Release"} = "DEBUG" ]] ; then | ||
MAKE_OPT+=" -DDEBUG=ON" | ||
elif [[ "${FASTER:-OFF}" == ON ]] ; then | ||
WalterKolczynski-NOAA marked this conversation as resolved.
Show resolved
Hide resolved
|
||
MAKE_OPT+=" -DFASTER=ON" | ||
fi | ||
COMPILE_NR=0 | ||
CLEAN_BEFORE=YES | ||
CLEAN_AFTER=NO | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to put the
CCPP_SUITE
inconfig.base
rather thanconfig.ufs
?config.base
is not a catch-all for all user-configurable settings; this should only be done if it is needed by additional jobs that are not usingconfig.ufs
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only reason I have right now is that in many situations, one only need to modify one config file for new experiments.
I will remove this change. Thanks!