Skip to content
Merged
18 changes: 11 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

set -eu

echo "Start ... `date`"
dir_root="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

source $dir_root/ush/detect_machine.sh
Expand Down Expand Up @@ -116,34 +117,37 @@ ln -sf $GDASAPP_TESTDATA/crtm $dir_root/bundle/fix/test-data-release/crtm
ln -sf $GDASAPP_TESTDATA/crtm $dir_root/bundle/test-data-release/crtm

# Configure
echo "Configuring ..."
echo "Configuring ... `date`"
set -x
cmake \
${CMAKE_OPTS:-} \
$dir_root/bundle
set +x

# Build
echo "Building ..."
echo "Building ... `date`"
set -x
if [[ $BUILD_JCSDA == 'YES' ]]; then
make -j ${BUILD_JOBS:-6} VERBOSE=$BUILD_VERBOSE
make -j ${BUILD_JOBS:-8} VERBOSE=$BUILD_VERBOSE
else
builddirs="gdas iodaconv land-imsproc land-jediincr gdas-utils bufr-query da-utils"
for b in $builddirs; do
cd $b
make -j ${BUILD_JOBS:-6} VERBOSE=$BUILD_VERBOSE
set +x
echo "Building $b ... `date`"
set -x
make -j ${BUILD_JOBS:-8} VERBOSE=$BUILD_VERBOSE
cd ../
done
fi
set +x

# Install
if [[ -n ${INSTALL_PREFIX:-} ]]; then
echo "Installing ..."
echo "Installing ... `date`"
set -x
make install
make install -j ${BUILD_JOBS:-8}
set +x
fi

echo "Finish ... `date`"
exit 0
11 changes: 8 additions & 3 deletions modulefiles/GDAS/wcoss2.intel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ load("pcre2/10.42")
load("curl/8.4.0")
load("zlib/1.2.13")
load("git/2.35.3")
load("git-lfs/2.11.0")
load("pkg-config/0.29.2")
load("hdf5/1.14.0")
load("parallel-netcdf/1.12.2")
Expand Down Expand Up @@ -75,13 +76,17 @@ load("py-markupsafe/2.1.3")
load("py-cftime/1.0.3.4")
load("py-packaging/23.1")

-- hack for git-lfs
prepend_path("PATH", "/apps/spack/git-lfs/2.11.0/gcc/11.2.0/m6b6nl5kfqngfteqbggydc7kflxere3s/bin")

setenv("CC","cc")
setenv("CXX","CC")
setenv("FC","ftn")

-- stack-intel/19.1.3.304 sets compiler flags "-static-libgcc -static-libstdc++ -Bstatic -lstdc++ -Bdynamic -lm -lpthread"
-- flags trigger "warning #10315: specifying -lm before files may supersede the Intel(R) math library and affect performance"
-- TODO: remove unsetenv lines when complier flags are removed from the wcoss2 spack-stack build
unsetenv("CFLAGS")
unsetenv("CXXFLAGS")
unsetenv("FFLAGS")

local mpiexec = '/opt/cray/pals/1.3.2/bin/mpirun'
local mpinproc = '-n'
setenv('MPIEXEC_EXEC', mpiexec)
Expand Down
14 changes: 0 additions & 14 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,6 @@ list(APPEND test_input
${PROJECT_SOURCE_DIR}/test/testinput/check_yaml_keys_test.yaml
${PROJECT_SOURCE_DIR}/test/testinput/bufr_adpsfc.yaml
${PROJECT_SOURCE_DIR}/test/testinput/bufr_adpsfc_snow.yaml
${PROJECT_SOURCE_DIR}/test/testinput/amsua_n19_ewok.yaml
${PROJECT_SOURCE_DIR}/test/testinput/temp_bufr_dbuoyprof.yaml
${PROJECT_SOURCE_DIR}/test/testinput/salt_bufr_dbuoyprof.yaml
${PROJECT_SOURCE_DIR}/test/testinput/temp_bufr_mbuoybprof.yaml
${PROJECT_SOURCE_DIR}/test/testinput/salt_bufr_mbuoybprof.yaml
${PROJECT_SOURCE_DIR}/test/testinput/bufr_tesacprof.yaml
${PROJECT_SOURCE_DIR}/test/testinput/bufr_trkobprof.yaml
${PROJECT_SOURCE_DIR}/test/testinput/bufr_sfcships.yaml
${PROJECT_SOURCE_DIR}/test/testinput/bufr_sfcshipsu.yaml
)

# create testinput dir
Expand All @@ -86,11 +77,6 @@ file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/test/testoutput)
# create testreference dir
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/test/testreference)

# list of test reference files to install
list(APPEND test_reference
${PROJECT_SOURCE_DIR}/test/testreference/amsua_n19_gdas.yaml
)

# symlink
foreach(FILENAME ${test_reference})
file(RELATIVE_PATH FILENAME_REL ${PROJECT_SOURCE_DIR}/test/testreference/ ${FILENAME})
Expand Down