Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
path = FV3
url = https://github.com/NOAA-EMC/fv3atm
branch = develop
[submodule "NEMS"]
path = NEMS
url = https://github.com/NOAA-EMC/NEMS
branch = develop
[submodule "WW3"]
path = WW3
url = https://github.com/NOAA-EMC/WW3
Expand Down
2 changes: 1 addition & 1 deletion CDEPS-interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
set(CMAKE_Fortran_FLAGS "-g -traceback")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -O -assume realloc_lhs")
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -fp-model precise")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -check -check noarg_temp_created -check nopointer -fpe0 -ftrapuv")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -check -check noarg_temp_created -check nopointer -fpe0 -ftrapuv -init=snan,arrays")
else()
message(WARNING "Fortran compiler with ID ${CMAKE_Fortran_COMPILER_ID} will be used with CMake default options")
endif()
Expand Down
1 change: 1 addition & 0 deletions CDEPS-interface/cdeps_files.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ list(APPEND cdeps_datm_files
CDEPS/datm/datm_datamode_cplhist_mod.F90
CDEPS/datm/datm_datamode_era5_mod.F90
CDEPS/datm/datm_datamode_gefs_mod.F90
CDEPS/datm/datm_datamode_gfs_mod.F90
CDEPS/datm/datm_datamode_jra_mod.F90
)

Expand Down
2 changes: 1 addition & 1 deletion CICE-interface/CICE
Submodule CICE updated 53 files
+2 −3 .gitmodules
+2 −2 README.md
+68 −12 cice.setup
+40 −18 cicecore/cicedynB/analysis/ice_history.F90
+29 −29 cicecore/cicedynB/analysis/ice_history_bgc.F90
+3 −0 cicecore/cicedynB/analysis/ice_history_drag.F90
+49 −60 cicecore/cicedynB/dynamics/ice_dyn_eap.F90
+59 −45 cicecore/cicedynB/dynamics/ice_dyn_evp.F90
+95 −12 cicecore/cicedynB/dynamics/ice_dyn_shared.F90
+137 −110 cicecore/cicedynB/dynamics/ice_dyn_vp.F90
+11 −4 cicecore/cicedynB/general/ice_forcing.F90
+40 −22 cicecore/cicedynB/general/ice_init.F90
+0 −4 cicecore/drivers/nuopc/cmeps/ice_comp_nuopc.F90
+44 −11 cicecore/drivers/nuopc/dmi/CICE_InitMod.F90
+88 −9 cicecore/drivers/nuopc/dmi/CICE_RunMod.F90
+3 −4 configuration/scripts/Makefile
+3 −2 configuration/scripts/ice_in
+3 −2 configuration/scripts/machines/Macros.daley_intel
+7 −0 configuration/scripts/machines/env.cheyenne_gnu
+7 −0 configuration/scripts/machines/env.cheyenne_intel
+7 −0 configuration/scripts/machines/env.cheyenne_pgi
+0 −1 configuration/scripts/options/set_env.box2001
+1 −1 configuration/scripts/options/set_nml.alt03
+1 −0 configuration/scripts/options/set_nml.atmbndyconstant
+1 −0 configuration/scripts/options/set_nml.atmbndymixed
+0 −10 configuration/scripts/options/set_nml.gx1coreii
+0 −8 configuration/scripts/options/set_nml.qc_nonbfb
+16 −0 configuration/scripts/options/set_nml.qcnonbfb
+0 −0 configuration/scripts/options/set_nml.snwitdrdg
+8 −10 configuration/scripts/parse_namelist.sh
+2 −1 configuration/scripts/parse_namelist_from_env.sh
+21 −13 configuration/scripts/parse_settings.sh
+8 −2 configuration/scripts/tests/QC/cice.t-test.py
+2 −2 configuration/scripts/tests/QC/gen_qc_cases.csh
+4 −3 configuration/scripts/tests/base_suite.ts
+48 −0 configuration/scripts/tests/baseline.script
+24 −0 configuration/scripts/tests/create_fails.csh
+0 −2 configuration/scripts/tests/decomp_suite.ts
+1 −0 configuration/scripts/tests/first_suite.ts
+2 −2 configuration/scripts/tests/nothread_suite.ts
+5 −3 configuration/scripts/tests/prod_suite.ts
+0 −1 configuration/scripts/tests/reprosum_suite.ts
+36 −0 configuration/scripts/tests/test_qcchk.script
+36 −0 configuration/scripts/tests/test_qcchkf.script
+7 −3 doc/source/cice_index.rst
+0 −15 doc/source/developer_guide/dg_forcing.rst
+6 −5 doc/source/developer_guide/dg_scripts.rst
+12 −1 doc/source/master_list.bib
+109 −105 doc/source/science_guide/sg_dynamics.rst
+4 −3 doc/source/user_guide/ug_case_settings.rst
+13 −3 doc/source/user_guide/ug_testing.rst
+2 −2 doc/source/user_guide/ug_troubleshooting.rst
+1 −1 icepack
2 changes: 1 addition & 1 deletion CICE-interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
set(CMAKE_Fortran_FLAGS "-g -traceback")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -FR -convert big_endian -assume byterecl -ftz -align array64byte -xHOST")
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -fp-model precise")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -check uninit -check bounds -check pointers -fpe0 -check noarg_temp_created")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -check uninit -check bounds -check pointers -fpe0 -check noarg_temp_created -init=snan,arrays")
set(CMAKE_Fortran_LINK_FLAGS "")
else()
message(WARNING "Fortran compiler with ID ${CMAKE_Fortran_COMPILER_ID} will be used with CMake default options")
Expand Down
2 changes: 1 addition & 1 deletion CMEPS-interface/CMEPS
Submodule CMEPS updated 53 files
+153 −0 .github/workflows/srt.yml
+2 −2 CMakeLists.txt
+0 −77 Makefile
+0 −0 cesm/driver/ensemble_driver.F90
+0 −0 cesm/driver/esm.F90
+0 −0 cesm/driver/esmApp.F90
+0 −0 cesm/driver/esm_time_mod.F90
+0 −0 cesm/driver/esm_utils_mod.F90
+0 −0 cesm/driver/t_driver_timers_mod.F90
+0 −0 cesm/driver/util.F90
+2,299 −0 cesm/flux_atmocn/shr_flux_mod.F90
+569 −0 cesm/nuopc_cap_share/glc_elevclass_mod.F90
+0 −0 cesm/nuopc_cap_share/nuopc_shr_methods.F90
+1,220 −0 cesm/nuopc_cap_share/seq_drydep_mod.F90
+76 −0 cesm/nuopc_cap_share/shr_carma_mod.F90
+185 −0 cesm/nuopc_cap_share/shr_expr_parser_mod.F90
+297 −0 cesm/nuopc_cap_share/shr_fire_emis_mod.F90
+310 −0 cesm/nuopc_cap_share/shr_megan_mod.F90
+106 −0 cesm/nuopc_cap_share/shr_ndep_mod.F90
+124 −0 cesm/nuopc_cap_share/shr_ozone_coupling_mod.F90
+2 −1 cime_config/buildexe
+1 −2 cime_config/buildnml
+17 −14 cime_config/namelist_definition_drv.xml
+1 −1 mediator/CMakeLists.txt
+31 −5 mediator/esmFldsExchange_cesm_mod.F90
+7 −0 mediator/fd_cesm.yaml
+15 −7 mediator/med.F90
+5 −0 mediator/med_constants_mod.F90
+391 −181 mediator/med_diag_mod.F90
+54 −17 mediator/med_io_mod.F90
+11 −3 mediator/med_map_mod.F90
+38 −8 mediator/med_phases_aofluxes_mod.F90
+46 −20 mediator/med_phases_history_mod.F90
+1 −1 mediator/med_phases_ocnalb_mod.F90
+39 −14 mediator/med_phases_post_glc_mod.F90
+138 −142 mediator/med_phases_prep_glc_mod.F90
+5 −1 mediator/med_phases_profile_mod.F90
+1 −1 mediator/med_phases_restart_mod.F90
+6 −0 ufs/CMakeLists.txt
+28 −83 ufs/flux_atmocn_mod.F90
+2 −2 ufs/glc_elevclass_mod.F90
+0 −0 ufs/perf_mod.F90
+3 −8 ufs/ufs_const_mod.F90
+2 −2 ufs/ufs_kind_mod.F90
+0 −7 util/CMakeLists.txt
+0 −50 util/Makefile
+0 −5 util/dtypes.h
+0 −387 util/genf90.pl
+0 −164 util/shr_abort_mod.F90
+0 −26 util/shr_log_mod.F90
+0 −17 util/shr_mem_mod.F90
+0 −2,217 util/shr_mpi_mod.F90
+0 −320 util/shr_sys_mod.F90
17 changes: 6 additions & 11 deletions CMEPS-interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,18 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
set(CMAKE_Fortran_FLAGS "-g -traceback")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -O -assume realloc_lhs")
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -fp-model precise")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -check -check noarg_temp_created -check nopointer -fpe0 -ftrapuv")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -check -check noarg_temp_created -check nopointer -fpe0 -ftrapuv -init=snan,arrays")
set(CMAKE_Fortran_LINK_FLAGS "")
else()
message(WARNING "Fortran compiler with ID ${CMAKE_Fortran_COMPILER_ID} will be used with CMake default options")
endif()

list(APPEND _nems_util_files
CMEPS/util/shr_abort_mod.F90
CMEPS/util/shr_log_mod.F90
CMEPS/util/shr_sys_mod.F90
CMEPS/util/shr_flux_mod.F90
CMEPS/util/shr_mpi_mod.F90
CMEPS/util/glc_elevclass_mod.F90
CMEPS/util/shr_mem_mod.F90
CMEPS/util/shr_kind_mod.F90
CMEPS/util/perf_mod.F90
CMEPS/util/shr_const_mod.F90)
CMEPS/ufs/flux_atmocn_mod.F90
CMEPS/ufs/glc_elevclass_mod.F90
CMEPS/ufs/ufs_kind_mod.F90
CMEPS/ufs/perf_mod.F90
CMEPS/ufs/ufs_const_mod.F90)

list(APPEND _mediator_files
CMEPS/mediator/med_phases_restart_mod.F90
Expand Down
12 changes: 4 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ endif()
message("")
message("32BIT ............ ${32BIT}")
message("AVX2 ............. ${AVX2}")
message("SIMDMULTIARCH ... ${SIMDMULTIARCH}")
message("SIMDMULTIARCH .... ${SIMDMULTIARCH}")
message("DEBUG ............ ${DEBUG}")
message("DEBUG_LINKMPI .... ${DEBUG_LINKMPI}")
message("INLINE_POST ...... ${INLINE_POST}")
Expand Down Expand Up @@ -214,13 +214,9 @@ if(CDEPS)
endif()

###############################################################################
### UFS Library [NEMS]
### UFS Library
###############################################################################
list(APPEND _nems_srcs NEMS/src/module_EARTH_GRID_COMP.F90
NEMS/src/module_NEMS_Rusage.F90
NEMS/src/nems_c_rusage.c)

add_library(ufs ${_nems_srcs})
add_library(ufs driver/EARTH_GRID_COMP.F90)
set_target_properties(ufs PROPERTIES Fortran_MODULE_DIRECTORY
${CMAKE_CURRENT_BINARY_DIR}/mod)
target_include_directories(ufs INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/mod>
Expand Down Expand Up @@ -298,7 +294,7 @@ target_link_libraries(ufs PUBLIC "${_ufs_libs_public}")
###############################################################################
### UFS executable
###############################################################################
add_executable(ufs_model NEMS/src/MAIN_NEMS.F90)
add_executable(ufs_model driver/UFS.F90)
add_dependencies(ufs_model ufs)
target_link_libraries(ufs_model ufs esmf w3nco::w3nco_d)

Expand Down
2 changes: 1 addition & 1 deletion FV3
Submodule FV3 updated from e7687f to eb463b
2 changes: 1 addition & 1 deletion HYCOM-interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if(CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
elseif(CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
set(CMAKE_Fortran_FLAGS "-g -traceback -xSSE4.2 -mcmodel=small -r8")
set(CMAKE_Fortran_FLAGS_RELEASE "-O3 -fp-model source -warn nogeneral")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -check -check noarg_temp_created -check nopointer -fpe0 -ftrapuv -link_mpi=dbg")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -check -check noarg_temp_created -check nopointer -fpe0 -ftrapuv -link_mpi=dbg -init=snan,arrays")
set(CMAKE_Fortran_LINK_FLAGS "-V ${CMAKE_Fortran_FLAGS} -static-intel")
else()
message(WARNING "Fortran compiler with ID ${CMAKE_Fortran_COMPILER_ID} will be used with CMake default options")
Expand Down
2 changes: 1 addition & 1 deletion MOM6-interface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -i4 -r8")
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fno-alias -auto -safe-cray-ptr -ftz -assume byterecl -sox")
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -debug minimal -fp-model source")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -check -check noarg_temp_created -check nopointer -fpe0 -ftrapuv")
set(CMAKE_Fortran_FLAGS_DEBUG "-O0 -check -check noarg_temp_created -check nopointer -fpe0 -ftrapuv -init=snan,arrays")
set(CMAKE_Fortran_LINK_FLAGS "")
else()
message(WARNING "Fortran compiler with ID ${CMAKE_Fortran_COMPILER_ID} will be used with CMake default options")
Expand Down
1 change: 0 additions & 1 deletion NEMS
Submodule NEMS deleted from d51fa5
4 changes: 0 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ export CC=${CC:-mpicc}
export CXX=${CXX:-mpicxx}
export FC=${FC:-mpif90}

export ESMFMKFILE=${ESMFMKFILE:?"Please set ESMFMKFILE environment variable"}

BUILD_DIR=${BUILD_DIR:-${UFS_MODEL_DIR}/build}
mkdir -p ${BUILD_DIR}

[[ -n "${MAPL_ROOT:-""}" ]] && CMAKE_FLAGS+=" -DCMAKE_MODULE_PATH=${MAPL_ROOT}/share/MAPL/cmake"

cd ${BUILD_DIR}
cmake ${UFS_MODEL_DIR} ${CMAKE_FLAGS}
# Turn off OpenMP threading for parallel builds
Expand Down
4 changes: 3 additions & 1 deletion cmake/GNU.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ else()
endif()

# For ccpp
set(CMAKE_Fortran_FLAGS_DEFAULT_PREC "-fdefault-real-8 -fdefault-double-8")
set(CMAKE_C_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_Fortran_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE)
7 changes: 1 addition & 6 deletions cmake/Intel.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ endif()

if(DEBUG)
add_definitions(-DDEBUG)
set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -O0 -check -check noarg_temp_created -check nopointer -warn -warn noerrors -fp-stack-check -fstack-protector-all -fpe0 -debug -ftrapuv")
set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -O0 -check -check noarg_temp_created -check nopointer -warn -warn noerrors -fp-stack-check -fstack-protector-all -fpe0 -debug -ftrapuv -init=snan,arrays")
if(DEBUG_LINKMPI)
if(OPENMP)
set(CMAKE_Fortran_FLAGS_DEBUG "${CMAKE_Fortran_FLAGS_DEBUG} -link_mpi=dbg_mt")
Expand All @@ -31,24 +31,19 @@ else()
if(AVX2)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -march=core-avx2")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=core-avx2")
set(CMAKE_Fortran_FLAGS_OPT "-no-prec-div -no-prec-sqrt -xCORE-AVX2")
elseif(SIMDMULTIARCH)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -axSSE4.2,CORE-AVX2")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -axSSE4.2,CORE-AVX2")
set(CMAKE_Fortran_FLAGS_OPT "-no-prec-div -no-prec-sqrt -axSSE4.2,CORE-AVX2")
elseif(AVX)
set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -march=core-avx-i")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=core-avx-i")
set(CMAKE_Fortran_FLAGS_OPT "-no-prec-div -no-prec-sqrt -xCORE-AVX-I")
endif()
endif()

# For ccpp
set(CMAKE_Fortran_FLAGS_DEFAULT_PREC "-real-size 64")
set(CMAKE_C_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_Fortran_FLAGS_RELEASE "-O2 -fPIC" CACHE STRING "" FORCE)

set(CMAKE_C_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE)
set(CMAKE_Fortran_FLAGS_BITFORBIT "-O2 -fPIC" CACHE STRING "" FORCE)
Expand Down
Loading