Skip to content
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 BUILD_WITH_NEMSIO build option to allow building UPP without nemsio #911

Merged
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add compile_upp.sh option to build without nemsio (-n)
DusanJovic-NOAA committed Apr 3, 2024
commit 5b6815fcab46af1357cd2d4e0ef08564d6922ff5
9 changes: 7 additions & 2 deletions tests/compile_upp.sh
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ usage() {
echo " -g build with GTG(users with gtg repos. access only) DEFAULT: OFF"
echo " -I build with libIFI(users with ifi repos. access only) DEFAULT: OFF"
echo " -i build with libIFI(users with ifi install access only) DEFAULT: OFF"
echo " -n build without nemsio DEFAULT: ON"
echo " -w build without WRF-IO DEFAULT: ON"
echo " -v build with cmake verbose DEFAULT: NO"
echo " -c Compiler to use for build DEFAULT: intel"
@@ -26,18 +27,22 @@ usage() {
prefix="../install"
ifi_opt=" -DBUILD_WITH_IFI=OFF"
gtg_opt=" -DBUILD_WITH_GTG=OFF"
nemsio_opt=" -DBUILD_WITH_NEMSIO=ON"
wrfio_opt=" -DBUILD_WITH_WRFIO=ON"
compiler="intel"
verbose_opt=""
debug_opt=""
while getopts ":p:gwc:vhiId" opt; do
while getopts ":p:gnwc:vhiId" opt; do
case $opt in
p)
prefix=$OPTARG
;;
g)
gtg_opt=" -DBUILD_WITH_GTG=ON"
;;
n)
nemsio_opt=" -DBUILD_WITH_NEMSIO=OFF"
;;
w)
wrfio_opt=" -DBUILD_WITH_WRFIO=OFF"
;;
@@ -69,7 +74,7 @@ if [[ ! -z $debug_opt && $ifi_opt =~ INTERNAL.*=ON ]] ; then
debug_opt="$debug_opt -DIFI_DEBUG=ON"
fi

cmake_opts=" -DCMAKE_INSTALL_PREFIX=$prefix"${wrfio_opt}${gtg_opt}${ifi_opt}${debug_opt}
cmake_opts=" -DCMAKE_INSTALL_PREFIX=$prefix"${nemsio_opt}${wrfio_opt}${gtg_opt}${ifi_opt}${debug_opt}

if [[ $(uname -s) == Darwin ]]; then
readonly MYDIR=$(cd "$(dirname "$(greadlink -f -n "${BASH_SOURCE[0]}" )" )" && pwd -P)