Skip to content

Commit

Permalink
Merge branch 'develop' into rt_compile_jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
DusanJovic-NOAA committed May 13, 2020
2 parents 74b976d + e661c03 commit 8686a7c
Show file tree
Hide file tree
Showing 30 changed files with 20,429 additions and 112,196 deletions.
1 change: 0 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@
[submodule "stochastic_physics"]
path = stochastic_physics
url = https://github.com/noaa-psd/stochastic_physics

54 changes: 53 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.15)

foreach(env_var IN ITEMS
CMAKE_C_COMPILER CMAKE_CXX_COMPILER CMAKE_Fortran_COMPILER
Expand Down Expand Up @@ -36,6 +36,58 @@ add_definitions(-DUSE_COND)
add_definitions(-DNEW_TAUCTMAX)
add_definitions(-DINTERNAL_FILE_NML)

if(CCPP)

find_package(Python 3 QUIET COMPONENTS Interpreter)
if (NOT Python_Interpreter_FOUND)
find_package(Python 2.7 QUIET REQUIRED COMPONENTS Interpreter)
endif()
message("Found Python: ${Python_EXECUTABLE}")

if(DEFINED CCPP_SUITES)
message("Calling CCPP code generator (ccpp_prebuild.py) for SUITES = ${CCPP_SUITES}")
execute_process(COMMAND FV3/ccpp/framework/scripts/ccpp_prebuild.py
"--config=FV3/ccpp/config/ccpp_prebuild_config.py"
"--suites=${CCPP_SUITES}"
"--builddir=${PROJECT_BINARY_DIR}/FV3"
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
OUTPUT_FILE ${PROJECT_BINARY_DIR}/ccpp_prebuild.out
ERROR_FILE ${PROJECT_BINARY_DIR}/ccpp_prebuild.err
RESULT_VARIABLE RC
)
else()
message("Calling CCPP code generator (ccpp_prebuild.py) ...")
execute_process(COMMAND FV3/ccpp/framework/scripts/ccpp_prebuild.py
"--config=FV3/ccpp/config/ccpp_prebuild_config.py"
"--builddir=${PROJECT_BINARY_DIR}/FV3"
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
OUTPUT_FILE ${PROJECT_BINARY_DIR}/ccpp_prebuild.out
ERROR_FILE ${PROJECT_BINARY_DIR}/ccpp_prebuild.err
RESULT_VARIABLE RC
)
endif()

# Check return code from ccpp_prebuild.py
if(RC EQUAL 0)
message("")
else()
message(FATAL_ERROR "An error occured while running ccpp_prebuild.py, check ${PROJECT_BINARY_DIR}/ccpp_prebuild.{out,err}")
endif()

# this should not be necessary; including CCPP_*.cmake here and passing
# SCHEMES, CAPS and TYPEDEFS via environment variables to CCPP build.
# CCPP should be able to directly include those three .cmake files.

include(${PROJECT_BINARY_DIR}/FV3/ccpp/physics/CCPP_SCHEMES.cmake)
include(${PROJECT_BINARY_DIR}/FV3/ccpp/physics/CCPP_CAPS.cmake)
include(${PROJECT_BINARY_DIR}/FV3/ccpp/physics/CCPP_TYPEDEFS.cmake)

set(ENV{CCPP_SCHEMES} "${SCHEMES}")
set(ENV{CCPP_CAPS} "${CAPS}")
set(ENV{CCPP_TYPEDEFS} "${TYPEDEFS}")

endif()

###############################################################################
### FMS
###############################################################################
Expand Down
2 changes: 1 addition & 1 deletion FV3
Submodule FV3 updated 53 files
+1 −1 atmos_cubed_sphere
+4 −4 atmos_model.F90
+1 −1 ccpp/framework
+1 −1 ccpp/physics
+1 −1 ccpp/suites/suite_FV3_CPT_v0.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_RRTMGP.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_coupled.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_csawmg.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_csawmgshoc.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_gfdlmp.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_gfdlmp_noahmp.xml
+8 −2 ccpp/suites/suite_FV3_GFS_2017_gfdlmp_regional.xml
+8 −2 ccpp/suites/suite_FV3_GFS_2017_gfdlmp_regional_c768.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_h2ophys.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_myj.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_ntiedtke.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_ozphys_2015.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_sas.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_satmedmf.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_satmedmf_coupled.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_satmedmfq.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_shinhong.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_stretched.xml
+1 −1 ccpp/suites/suite_FV3_GFS_2017_ysu.xml
+1 −1 ccpp/suites/suite_FV3_GFS_cpld_rasmgshoc.xml
+1 −1 ccpp/suites/suite_FV3_GFS_cpldnst_rasmgshoc.xml
+1 −1 ccpp/suites/suite_FV3_GFS_rasmgshoc.xml
+1 −1 ccpp/suites/suite_FV3_GFS_v15.xml
+1 −1 ccpp/suites/suite_FV3_GFS_v15_gf.xml
+1 −1 ccpp/suites/suite_FV3_GFS_v15_gf_thompson.xml
+1 −1 ccpp/suites/suite_FV3_GFS_v15_mynn.xml
+1 −1 ccpp/suites/suite_FV3_GFS_v15_ras.xml
+1 −1 ccpp/suites/suite_FV3_GFS_v15_rasmgshoc.xml
+1 −1 ccpp/suites/suite_FV3_GFS_v15_thompson.xml
+1 −1 ccpp/suites/suite_FV3_GFS_v15_thompson_mynn.xml
+1 −1 ccpp/suites/suite_FV3_GFS_v15p2.xml
+1 −1 ccpp/suites/suite_FV3_GFS_v15p2_coupled.xml
+91 −0 ccpp/suites/suite_FV3_GFS_v15p2_no_nsst.xml
+1 −1 ccpp/suites/suite_FV3_GFS_v15plus.xml
+1 −1 ccpp/suites/suite_FV3_GFS_v15plusras.xml
+1 −1 ccpp/suites/suite_FV3_GFS_v16_csawmg.xml
+1 −1 ccpp/suites/suite_FV3_GFS_v16beta.xml
+91 −0 ccpp/suites/suite_FV3_GFS_v16beta_no_nsst.xml
+1 −1 ccpp/suites/suite_FV3_GSD_SAR.xml
+1 −1 ccpp/suites/suite_FV3_GSD_noah.xml
+1 −1 ccpp/suites/suite_FV3_GSD_v0.xml
+1 −1 ccpp/suites/suite_FV3_GSD_v0_drag_suite.xml
+1 −1 ccpp/suites/suite_FV3_HAFS_ferhires_update_moist.xml
+19 −17 gfsphysics/CCPP_layer/CCPP_typedefs.F90
+1 −1 gfsphysics/GFS_layer/GFS_physics_driver.F90
+1 −1 io/makefile
+1 −1 ipd/makefile
2 changes: 1 addition & 1 deletion NEMS
10 changes: 0 additions & 10 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,6 @@ rm -rf ${BUILD_DIR}
mkdir ${BUILD_DIR}

CCPP_SUITES="${CCPP_SUITES:-FV3_GFS_2017_gfdlmp}"

./FV3/ccpp/framework/scripts/ccpp_prebuild.py \
--config=FV3/ccpp/config/ccpp_prebuild_config.py \
--suites=${CCPP_SUITES} \
--builddir=${BUILD_DIR}/FV3 > ${BUILD_DIR}/ccpp_prebuild.log 2>&1

source ${BUILD_DIR}/FV3/ccpp/physics/CCPP_SCHEMES.sh
source ${BUILD_DIR}/FV3/ccpp/physics/CCPP_CAPS.sh
source ${BUILD_DIR}/FV3/ccpp/physics/CCPP_STATIC_API.sh

CMAKE_FLAGS+=" -DCCPP=ON -DSUITES=${CCPP_SUITES} -DNETCDF_DIR=${NETCDF}"

cd ${BUILD_DIR}
Expand Down
3 changes: 1 addition & 2 deletions modulefiles/hera.gnu/fv3
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ module load NCEPlibs/1.0.0
##
## load cmake
##
module use -a /scratch1/BMC/gmtb/software/modulefiles/generic
module load cmake/3.16.3
module load cmake/3.16.1
setenv CMAKE_C_COMPILER mpicc
setenv CMAKE_CXX_COMPILER mpicxx
setenv CMAKE_Fortran_COMPILER mpif90
Expand Down
3 changes: 1 addition & 2 deletions modulefiles/hera.intel/fv3
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ module load esmf/8.0.0_ParallelNetCDF
##
## load cmake
##
module use /contrib/modulefiles
module load cmake/3.9.0
module load cmake/3.16.1
setenv CMAKE_C_COMPILER mpiicc
setenv CMAKE_CXX_COMPILER mpiicpc
setenv CMAKE_Fortran_COMPILER mpiifort
Expand Down
4 changes: 4 additions & 0 deletions modulefiles/orion.intel/fv3
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ module load netcdfp/4.7.4
module load esmflocal/8.0.0.para
module load post-intel-sandybridge/8.0.5

###
### load Python 3
#module load python/3.7.5

##
## load cmake
##
Expand Down
8 changes: 4 additions & 4 deletions modulefiles/wcoss_dell_p3/fv3
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ module-whatis "loads NEMS FV3 prerequisites on Venus and Mars"
module load ips/18.0.1.163
module load impi/18.0.1
module load lsf/10.1
module load cmake/3.10.0
module load lsf/10.1
module load cmake/3.16.2
# module load python/3.6.3
module load python/2.7.14

module use -a /usrx/local/nceplibs/dev/NCEPLIBS/modulefiles

Expand All @@ -44,13 +45,12 @@ module load post/8.0.6

module use /gpfs/dell2/emc/modeling/noscrub/emc.nemspara/soft/modulefiles
module load hdf5_parallel/1.10.6
module load netcdf_parallel/4.7.4
module load netcdf_parallel/4.7.4
module load esmf/8.0.0_ParallelNetCDF

##
## load cmake
##
module load cmake/3.10.0
setenv CMAKE_C_COMPILER mpiicc
setenv CMAKE_CXX_COMPILER mpiicpc
setenv CMAKE_Fortran_COMPILER mpiifort
Expand Down
2 changes: 2 additions & 0 deletions parm/ccpp_regional.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
hord_tr = -8
adjust_dry_mass = .F.
consv_te = 0.
do_sat_adj = .T.
consv_am = .F.
fill = .T.
dwind_2d = .F.
Expand Down Expand Up @@ -177,6 +178,7 @@
debug = .false.
oz_phys = @[OZ_PHYS_OLD]
oz_phys_2015 = @[OZ_PHYS_NEW]
h2o_phys = @[H2O_PHYS]
nstf_name = 1,1,1,0,5
cplflx = .F.
iau_delthrs = 6
Expand Down
2 changes: 2 additions & 0 deletions parm/ccpp_regional_c768.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
hord_tr = 8
adjust_dry_mass = .F.
consv_te = 0.
do_sat_adj = .T.
consv_am = .F.
fill = .T.
dwind_2d = .F.
Expand Down Expand Up @@ -174,6 +175,7 @@
debug = .false.
oz_phys = @[OZ_PHYS_OLD]
oz_phys_2015 = @[OZ_PHYS_NEW]
h2o_phys = @[H2O_PHYS]
nstf_name = 1,1,1,0,5
cplflx = .F.
iau_delthrs = 6
Expand Down
2 changes: 1 addition & 1 deletion stochastic_physics
Loading

0 comments on commit 8686a7c

Please sign in to comment.