Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to mraerosol branch from Dom #3

Merged
merged 57 commits into from
Oct 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
d1ac326
Add netCDF dependency, rename target to ccpp_physics
climbfuji Jul 23, 2021
a9c7465
More cleanup in CMakeLists.txt
climbfuji Jul 23, 2021
9db88aa
Metadata bug fixes and updates
climbfuji Aug 12, 2021
8bc30ff
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into merg…
climbfuji Aug 16, 2021
93368e9
Update submodule pointer for physics/rte-rrtmgp
climbfuji Aug 16, 2021
cfaaaf7
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into merg…
climbfuji Aug 17, 2021
1f7599a
Revert change to .gitmodules
climbfuji Aug 17, 2021
cabe68f
Merge pull request #718 from climbfuji/merge_feature_capgen_into_main…
climbfuji Aug 18, 2021
fb7cfa8
Update loop to apply ice adjusted only at non-land points
GeorgeGayno-NOAA Aug 23, 2021
902270f
Metadata bugfixes following CCPP standard name updates
climbfuji Sep 1, 2021
1f8cf92
Merge pull request #721 from GeorgeGayno-NOAA/feature/sfcsub_fix
climbfuji Sep 2, 2021
9a842cb
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into meta…
climbfuji Sep 2, 2021
79a5827
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into ccpp…
climbfuji Sep 8, 2021
cb2b516
Merge pull request #722 from climbfuji/metadata_bugfixes_following_cc…
climbfuji Sep 10, 2021
ec77768
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into ccpp…
climbfuji Sep 10, 2021
69dc13d
fixed issue with decomp-change RT failures with ugwpv1 and made other…
mdtoyNOAA Sep 11, 2021
18fb14e
Add missing dependency on w3nco::w3nco_d
climbfuji Sep 13, 2021
84c6144
Merge pull request #705 from climbfuji/ccpp_cmake_cleanup
climbfuji Sep 14, 2021
074c1b0
Make vegetation, slope and soil type integers
climbfuji Sep 15, 2021
a442f80
Update physics/GFS_debug.F90 to reflect the recent changes to the GFS…
climbfuji Sep 15, 2021
b063048
Add code to reverse changes to vegetation/soil/slope type to GFS_surf…
climbfuji Sep 16, 2021
ac03a54
Add logic to save and restore vegetation/soil/slope types before/afte…
climbfuji Sep 16, 2021
d45dc43
Further optimization and code changes for b4b results
climbfuji Sep 20, 2021
a80ad97
Code cleanup and consistent saving and restoring of vegetation/soil/s…
climbfuji Sep 20, 2021
4099a70
update scm_sfc_flux_spec to work with latest ccpp-physics main
grantfirl Sep 20, 2021
2a5ebb8
add NoahMP restart fix in GFS_surface_composites.F90
junwang-noaa Sep 21, 2021
a1fd2c6
Merge remote-tracking branch 'grant/SCM_only_20210921' into noahmp_rs…
junwang-noaa Sep 21, 2021
34c98c4
add stochastics_init subroutine
pjpegion Sep 22, 2021
6936630
Merge remote-tracking branch 'upstream/main' into new_stochy
pjpegion Sep 22, 2021
badab05
remove comment line
junwang-noaa Sep 23, 2021
2b1246b
fix decomppsotion issue with cimin
junwang-noaa Sep 24, 2021
a9237ce
Merge pull request #732 from junwang-noaa/noahmp_rstfix
climbfuji Sep 24, 2021
2883e06
fix to vfact_ca to address levs/levsr issue
pjpegion Sep 24, 2021
3c344c5
Merge remote-tracking branch 'upstream/main' into new_stochy
pjpegion Sep 24, 2021
099919b
fix logic in GFS_stochsatics wrt levs,levsr
pjpegion Sep 24, 2021
66c582a
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into vege…
climbfuji Sep 24, 2021
cf1e9fa
Merge remote-tracking branch 'upstream/main' into decomp_fix
junwang-noaa Sep 25, 2021
c3ff637
Merge pull request #742 from junwang-noaa/decomp_fix
climbfuji Sep 27, 2021
ff71173
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into vege…
climbfuji Sep 27, 2021
bbb7861
Remove Julie from CODEOWNERS
Sep 27, 2021
565b147
Merge branch 'ugwpv1_various_bugfixes' of https://github.com/mdtoy/cc…
climbfuji Sep 28, 2021
d935401
Merge branch 'feature/julie_retires' of https://github.com/julieschra…
climbfuji Sep 28, 2021
e22fd68
Merge pull request #747 from climbfuji/mike_ugwp_and_julie_codeowner
climbfuji Sep 29, 2021
f6679e2
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into vege…
climbfuji Sep 29, 2021
b264b9a
Merge remote-tracking branch 'upstream/main' into new_stochy
pjpegion Sep 29, 2021
34ac0f1
remove redundant copies in Diag container
pjpegion Sep 29, 2021
3c23577
Merge pull request #737 from pjpegion/new_stochy
climbfuji Sep 30, 2021
8763252
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into vege…
climbfuji Sep 30, 2021
d29e48b
Cleanup work: fix typos, remove old dependencies and comments in sour…
climbfuji Oct 1, 2021
9438220
Remove stochastic physics arrays that no longer exist from physics/GF…
climbfuji Oct 1, 2021
71832db
Fix formatting in physics/GFS_surface_generic.F90
climbfuji Oct 1, 2021
2ececb0
Merge pull request #730 from climbfuji/vegetation_soil_slope_type_int…
climbfuji Oct 4, 2021
079eb2b
Minor bugfix in GFS_PBL_generic.F90, formatting changes in mp_thompso…
climbfuji Oct 6, 2021
5df6990
Merge branch 'mraerosol' of https://github.com/AnningCheng-NOAA/ccpp-…
climbfuji Oct 6, 2021
2ade7fe
Bug fixes and updates in module_mp_thompson.F90 and mp_thompson.F90
climbfuji Oct 6, 2021
1babf68
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into mrae…
climbfuji Oct 6, 2021
1aa28fb
Bug fixes for newly added code in module_mp_thompson.F90 and mp_thomp…
climbfuji Oct 6, 2021
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
57 changes: 16 additions & 41 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ endif (NOT PROJECT)
#------------------------------------------------------------------------------
cmake_minimum_required(VERSION 3.0)

project(ccppphys
VERSION 4.0.0
LANGUAGES C CXX Fortran)
project(ccpp_physics
VERSION 5.0.0
LANGUAGES Fortran)

# Use rpaths on MacOSX
set(CMAKE_MACOSX_RPATH 1)
Expand All @@ -31,25 +31,9 @@ set(AUTHORS "Grant Firl" "Dom Heinzeller" "Man Zhang" "Laurie Carson")
if (OPENMP)
include(detect_openmp)
detect_openmp()
#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
#set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
#set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${OpenMP_Fortran_FLAGS}")
message(STATUS "Enable OpenMP support for C/C++/Fortran compiler")
message(STATUS "Enable OpenMP support")
else (OPENMP)
message (STATUS "Disable OpenMP support for C/C++/Fortran compiler")
endif()

#------------------------------------------------------------------------------
# The Fortran compiler/linker flag inserted by cmake to create shared libraries
# with the Intel compiler is deprecated (-i_dynamic), correct here.
# CMAKE_Fortran_COMPILER_ID = {"Intel", "PGI", "GNU", "Clang", "MSVC", ...}
if ("${CMAKE_Fortran_COMPILER_ID}" STREQUAL "Intel")
string(REPLACE "-i_dynamic" "-shared-intel"
CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS
"${CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS}")
string(REPLACE "-i_dynamic" "-shared-intel"
CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS
"${CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS}")
message (STATUS "Disable OpenMP support")
endif()

#------------------------------------------------------------------------------
Expand Down Expand Up @@ -321,22 +305,8 @@ else()
message (FATAL_ERROR "This program has only been compiled with gfortran, pgf90 and ifort. If another compiler is needed, the appropriate flags must be added in ${GFS_PHYS_SRC}/CMakeLists.txt")
endif()

# The auto-generated caps can contain calls to physics schemes in
# which some of the arguments (pointers, arrays) are not associated/allocated.
# This is on purpose to avoid allocating fields that are not used inside the
# scheme if, for example, certain conditions are not met. To avoid
# Fortran runtime errors, it is necessary to remove checks for pointers
# that are not associated and for array bounds from the caps ONLY. For the
# physics schemes, these checks can and should remain enabled. Overwriting
# the pointer check flags explicitly works for Intel and GNU, but not for PGI.
if (${CMAKE_Fortran_COMPILER_ID} STREQUAL "GNU")
set_property(SOURCE ${CAPS} APPEND_STRING PROPERTY COMPILE_FLAGS " -fcheck=no-pointer,no-bounds ")
elseif (${CMAKE_Fortran_COMPILER_ID} STREQUAL "Intel")
set_property(SOURCE ${CAPS} APPEND_STRING PROPERTY COMPILE_FLAGS " -check nopointers,nobounds ")
endif ()

#------------------------------------------------------------------------------
add_library(ccppphys STATIC ${SCHEMES} ${SCHEMES_SFX_OPT} ${CAPS})
add_library(ccpp_physics STATIC ${SCHEMES} ${SCHEMES_SFX_OPT} ${CAPS})
# Generate list of Fortran modules from defined sources
foreach(source_f90 ${CAPS})
get_filename_component(tmp_source_f90 ${source_f90} NAME)
Expand All @@ -345,20 +315,25 @@ foreach(source_f90 ${CAPS})
list(APPEND MODULES_F90 ${CMAKE_CURRENT_BINARY_DIR}/${module_f90})
endforeach()

set_target_properties(ccppphys PROPERTIES VERSION ${PROJECT_VERSION}
set_target_properties(ccpp_physics PROPERTIES VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR})

target_include_directories(ccpp_physics PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)

target_link_libraries(ccpp_physics PUBLIC w3nco::w3nco_d NetCDF::NetCDF_Fortran)

if (PROJECT STREQUAL "CCPP-FV3")
# Define where to install the library
install(TARGETS ccppphys
EXPORT ccppphys-targets
install(TARGETS ccpp_physics
EXPORT ccpp_physics-targets
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION lib
)
# Export our configuration
install(EXPORT ccppphys-targets
FILE ccppphys-config.cmake
install(EXPORT ccpp_physics-targets
FILE ccpp_physics-config.cmake
DESTINATION lib/cmake
)
# Define where to install the C headers and Fortran modules
Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# These owners will be the default owners for everything in the repo.
#* @defunkt
* @climbfuji @llpcarson @grantfirl @JulieSchramm
* @climbfuji @llpcarson @grantfirl

# Order is important. The last matching pattern has the most precedence.
# So if a pull request only touches javascript files, only these owners
Expand Down
10 changes: 5 additions & 5 deletions physics/GFS_DCNV_generic.meta
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
standard_name = convective_transportable_tracers
long_name = array to contain cloud water and other convective trans. tracers
units = kg kg-1
dimensions = (horizontal_loop_extent,vertical_dimension,number_of_tracers_for_convective_transport)
dimensions = (horizontal_loop_extent,vertical_layer_dimension,number_of_tracers_for_convective_transport)
type = real
kind = kind_phys
intent = in
Expand Down Expand Up @@ -477,7 +477,7 @@
standard_name = cumulative_change_of_state_variables
long_name = diagnostic tendencies for state variables
units = various
dimensions = (horizontal_loop_extent,vertical_dimension,number_of_cumulative_change_processes)
dimensions = (horizontal_loop_extent,vertical_layer_dimension,number_of_cumulative_change_processes)
type = real
kind = kind_phys
intent = inout
Expand Down Expand Up @@ -534,7 +534,7 @@
standard_name = tracer_concentration_of_new_state
long_name = tracer concentration updated by physics
units = kg kg-1
dimensions = (horizontal_loop_extent,vertical_dimension,number_of_tracers)
dimensions = (horizontal_loop_extent,vertical_layer_dimension,number_of_tracers)
type = real
kind = kind_phys
intent = in
Expand All @@ -543,7 +543,7 @@
standard_name = tracer_concentration_save
long_name = tracer concentration before entering a physics scheme
units = kg kg-1
dimensions = (horizontal_loop_extent,vertical_dimension,number_of_tracers)
dimensions = (horizontal_loop_extent,vertical_layer_dimension,number_of_tracers)
type = real
kind = kind_phys
intent = in
Expand Down Expand Up @@ -778,7 +778,7 @@
standard_name = convective_transportable_tracers
long_name = array to contain cloud water and other convective trans. tracers
units = kg kg-1
dimensions = (horizontal_loop_extent,vertical_dimension,number_of_tracers_for_convective_transport)
dimensions = (horizontal_loop_extent,vertical_layer_dimension,number_of_tracers_for_convective_transport)
type = real
kind = kind_phys
intent = in
Expand Down
4 changes: 2 additions & 2 deletions physics/GFS_MP_generic.meta
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@
standard_name = cumulative_change_of_state_variables
long_name = diagnostic tendencies for state variables
units = various
dimensions = (horizontal_loop_extent,vertical_dimension,number_of_cumulative_change_processes)
dimensions = (horizontal_loop_extent,vertical_layer_dimension,number_of_cumulative_change_processes)
type = real
kind = kind_phys
intent = inout
Expand All @@ -832,7 +832,7 @@
standard_name = cumulative_change_of_state_variables_outer_index
long_name = index of state-variable and process in last dimension of diagnostic tendencies array AKA cumulative_change_index
units = index
dimensions = (number_of_tracers_plus_one_hundred,number_of_causes)
dimensions = (number_of_tracers_plus_one_hundred,number_of_cumulative_change_processes)
type = integer
intent = in
optional = F
Expand Down
2 changes: 1 addition & 1 deletion physics/GFS_PBL_generic.meta
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@
standard_name = cumulative_change_of_state_variables
long_name = diagnostic tendencies for state variables
units = various
dimensions = (horizontal_loop_extent,vertical_dimension,number_of_cumulative_change_processes)
dimensions = (horizontal_loop_extent,vertical_layer_dimension,number_of_cumulative_change_processes)
type = real
kind = kind_phys
intent = inout
Expand Down
2 changes: 1 addition & 1 deletion physics/GFS_SCNV_generic.meta
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
standard_name = convective_transportable_tracers
long_name = array to contain cloud water and other convective trans. tracers
units = kg kg-1
dimensions = (horizontal_loop_extent,vertical_dimension,number_of_tracers_for_convective_transport)
dimensions = (horizontal_loop_extent,vertical_layer_dimension,number_of_tracers_for_convective_transport)
type = real
kind = kind_phys
intent = in
Expand Down
Loading