Skip to content

Commit

Permalink
Merge pull request #92 from grantfirl/ufs-dev-PR42
Browse files Browse the repository at this point in the history
UFS-dev PR#42
  • Loading branch information
grantfirl authored Apr 12, 2023
2 parents a72d438 + ae67c56 commit 8b276be
Show file tree
Hide file tree
Showing 24 changed files with 1,518 additions and 1,140 deletions.
2 changes: 1 addition & 1 deletion AQM
23 changes: 23 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,28 @@ if(CMAKE_Platform)
endif()
endif()

option(BUILD_WITH_IFI "Build NCEPpost with In-Flight Icing (IFI) library if present" OFF)
option(REQUIRE_IFI "Abort if libIFI is not found ; enables BUILD_WITH_IFI=ON" OFF)
option(INTERNAL_IFI "Compile with IFI inside the executable, instead of a library" OFF)

if(INTERNAL_IFI)
message("Building with libIFI inside executable. Do not distribute executable outside of WCOSS2.")
set(BUILD_WITH_IFI OFF)
set(REQUIRE_IFI OFF)
endif()

if(REQUIRE_IFI)
set(BUILD_WITH_IFI ON)
endif()

if(BUILD_WITH_IFI)
if(REQUIRE_IFI)
find_package(IFI CONFIG REQUIRED)
else()
find_package(IFI CONFIG)
endif()
endif()

message("")
message("32BIT ............ ${32BIT}")
message("CCPP_32BIT ....... ${CCPP_32BIT}")
Expand Down Expand Up @@ -316,6 +338,7 @@ target_link_libraries(ufs PUBLIC "${_ufs_libs_public}")
add_executable(ufs_model driver/UFS.F90)
add_dependencies(ufs_model ufs)
target_link_libraries(ufs_model ufs esmf w3emc::w3emc_d)
set_target_properties(ufs_model PROPERTIES LINKER_LANGUAGE Fortran)

###############################################################################
### Install
Expand Down
2 changes: 1 addition & 1 deletion FV3
3 changes: 3 additions & 0 deletions modulefiles/ufs_acorn.intel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ load(pathJoin("hpc-cray-mpich", hpc_cray_mpich_ver))

load("ufs_common")

prepend_path("MODULEPATH", "/lfs/h1/emc/nceplibs/noscrub/UPP_IFI/modulefiles")
load("ifi/20230118-intel-19.1.3.304")

setenv("CC", "cc")
setenv("CXX", "CC")
setenv("FC", "ftn")
Expand Down
3 changes: 3 additions & 0 deletions modulefiles/ufs_acorn.intel_debug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ load(pathJoin("hpc-cray-mpich", hpc_cray_mpich_ver))

load("ufs_common_debug")

prepend_path("MODULEPATH", "/lfs/h1/emc/nceplibs/noscrub/UPP_IFI/modulefiles")
load("ifi/20230118-intel-19.1.3.304")

setenv("CC", "cc")
setenv("CXX", "CC")
setenv("FC", "ftn")
Expand Down
3 changes: 3 additions & 0 deletions modulefiles/ufs_hera.intel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ setenv("CXX", "mpiicpc")
setenv("FC", "mpiifort")
setenv("CMAKE_Platform", "hera.intel")

prepend_path("MODULEPATH", "/scratch2/BMC/ifi/modulefiles")
try_load("ifi/20230118-intel-2022.1.2")

whatis("Description: UFS build environment")
3 changes: 3 additions & 0 deletions modulefiles/ufs_hera.intel_debug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ setenv("CXX", "mpiicpc")
setenv("FC", "mpiifort")
setenv("CMAKE_Platform", "hera.intel")

prepend_path("MODULEPATH", "/scratch2/BMC/ifi/modulefiles")
try_load("ifi/20230118-intel-2022.1.2")

whatis("Description: UFS build environment")
3 changes: 3 additions & 0 deletions modulefiles/ufs_jet.intel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ setenv("CXX", "mpiicpc")
setenv("FC", "mpiifort")
setenv("CMAKE_Platform", "jet.intel")

prepend_path("MODULEPATH", "/lfs4/BMC/ifi/modulefiles")
try_load("ifi/20230118-intel-2022.1.2")

whatis("Description: UFS build environment")
3 changes: 3 additions & 0 deletions modulefiles/ufs_jet.intel_debug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ setenv("CXX", "mpiicpc")
setenv("FC", "mpiifort")
setenv("CMAKE_Platform", "jet.intel")

prepend_path("MODULEPATH", "/lfs4/BMC/ifi/modulefiles")
try_load("ifi/20230118-intel-2022.1.2")

whatis("Description: UFS build environment")
424 changes: 212 additions & 212 deletions tests/RegressionTests_cheyenne.gnu.log

Large diffs are not rendered by default.

420 changes: 210 additions & 210 deletions tests/RegressionTests_hera.gnu.log

Large diffs are not rendered by default.

1,316 changes: 658 additions & 658 deletions tests/RegressionTests_hera.intel.log

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/fv3_conf/compile_qsub.IN_cheyenne
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#PBS -A @[ACCNR]
#PBS -q @[QUEUE]
#PBS -l select=1:ncpus=8:mpiprocs=1
#PBS -l walltime=00:30:00
#PBS -l walltime=00:35:00

set -eux

Expand Down
2 changes: 2 additions & 0 deletions tests/fv3_conf/rrfs_warm_run.IN
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ if [ $IMP_PHYSICS = 8 ]; then
cp @[INPUTDATA_ROOT]/FV3_input_data_gsd/CCN_ACTIVATE.BIN .
fi

cp ${PATHRT}/parm/postxconfig-NT-fv3lam.txt postxconfig-NT.txt

if [ $DO_RRTMGP = .true. ]; then
cp @[INPUTDATA_ROOT]/FV3_input_data_RRTMGP/* .
fi
2 changes: 1 addition & 1 deletion tests/parm/aqm/aqm.rc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ csqy_data: CSQY_DATA_cb6r3_ae6_aq
optics_data: PHOT_OPTICS.dat
omi_data: omi_cmaq_2015_361X179.dat

init_concentrations: true
init_concentrations: false

run_aerosol: true

Expand Down
6 changes: 6 additions & 0 deletions tests/parm/diag_table/diag_table_hrrr
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,12 @@
"gfs_phys", "skebv_wts", "skebv_wts", "fv3_history", "all", .false., "none", 2
"gfs_phys", "shum_wts", "shum_wts", "fv3_history", "all", .false., "none", 2


# Lightning threat indexes
"gfs_sfc", "ltg1_max", "ltg1_max", "fv3_history2d", "all", .false., "none", 2
"gfs_sfc", "ltg2_max", "ltg2_max", "fv3_history2d", "all", .false., "none", 2
"gfs_sfc", "ltg3_max", "ltg3_max", "fv3_history2d", "all", .false., "none", 2

#=============================================================================================
#
#====> This file can be used with diag_manager/v2.0a (or higher) <====
Expand Down
Loading

0 comments on commit 8b276be

Please sign in to comment.