Skip to content

Commit

Permalink
Switch to develop ufo, crtm 2.4, and some build changes (#546)
Browse files Browse the repository at this point in the history
* switch to develop ufo, crtm 2.4, and some build changes

* pycodestyle (why did this break?)
  • Loading branch information
CoryMartin-NOAA committed Aug 2, 2023
1 parent 48c9ad8 commit 75ed6fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ if(BUILD_GDASBUNDLE)

# External (required) observation operators
option("BUNDLE_SKIP_CRTM" "Don't build CRTM" "OFF") # Don't build crtm unless user passes -DBUNDLE_SKIP_CRTM=OFF
ecbuild_bundle( PROJECT crtm GIT "https://github.com/ADCollard/crtm.git" TAG v2.3-jedi.3_fix )
ecbuild_bundle( PROJECT crtm GIT "https://github.com/JCSDA/crtm.git" TAG v2.4.1-jedi.1 )

# Build GSI-B
option(BUILD_GSIBEC "Build GSI-B" OFF)
Expand All @@ -75,7 +75,7 @@ if(BUILD_GDASBUNDLE)
ecbuild_bundle( PROJECT vader GIT "https://github.com/jcsda/vader.git" BRANCH develop )
ecbuild_bundle( PROJECT saber GIT "https://github.com/jcsda/saber.git" BRANCH develop )
ecbuild_bundle( PROJECT ioda GIT "https://github.com/jcsda/ioda.git" BRANCH develop )
ecbuild_bundle( PROJECT ufo GIT "https://github.com/jcsda/ufo.git" BRANCH feature/gdasapp_ufo )
ecbuild_bundle( PROJECT ufo GIT "https://github.com/jcsda/ufo.git" BRANCH develop )

# FMS and FV3 dynamical core
ecbuild_bundle( PROJECT fms GIT "https://github.com/jcsda/FMS.git" BRANCH release-stable )
Expand Down
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ usage() {
# Defaults:
INSTALL_PREFIX=""
CMAKE_OPTS=""
BUILD_TARGET="${MACHINE_ID}"
BUILD_TARGET="${MACHINE_ID:-'localhost'}"
BUILD_VERBOSE="NO"
CLONE_JCSDADATA="NO"
CLEAN_BUILD="NO"
Expand Down Expand Up @@ -76,7 +76,6 @@ case ${BUILD_TARGET} in
module use $dir_root/modulefiles
module load GDAS/$BUILD_TARGET
CMAKE_OPTS+=" -DMPIEXEC_EXECUTABLE=$MPIEXEC_EXEC -DMPIEXEC_NUMPROC_FLAG=$MPIEXEC_NPROC -DBUILD_GSIBEC=ON"
CMAKE_OPTS+=" -DCLONE_JCSDADATA=$CLONE_JCSDADATA"
module list
;;
$(hostname))
Expand All @@ -87,6 +86,8 @@ case ${BUILD_TARGET} in
;;
esac

CMAKE_OPTS+=" -DCLONE_JCSDADATA=$CLONE_JCSDADATA"

BUILD_DIR=${BUILD_DIR:-$dir_root/build}
if [[ $CLEAN_BUILD == 'YES' ]]; then
[[ -d ${BUILD_DIR} ]] && rm -rf ${BUILD_DIR}
Expand Down
2 changes: 1 addition & 1 deletion ush/ufsda/genYAML.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def genYAML(yamlconfig, output=None):
# what if the config_dict has environment variables that need substituted?
pattern = re.compile(r'.*?\${(\w+)}.*?')
for key, value in config_dict.items():
if type(value) == str:
if type(value) is str:
match = pattern.findall(value)
if match:
fullvalue = value
Expand Down

0 comments on commit 75ed6fe

Please sign in to comment.