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

sync with the develop #57

Merged
merged 80 commits into from
Feb 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
3b66834
Add loop over columns in RRTMGP longwave scheme. Collapse GP schemes …
dustinswales Apr 11, 2022
a8d3f24
Add loop over columns in RRTMGP scheme. Collapse GP schemes into loop…
dustinswales Apr 11, 2022
8c23823
Bug fixes. Working now.
dustinswales Apr 12, 2022
0532ca3
Some more cleanup.
dustinswales Apr 12, 2022
0156bff
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into addN…
dustinswales Apr 12, 2022
9345505
Longwave RRTMGP loop over ncol working.
dustinswales Apr 21, 2022
66564c0
Merge branch 'addNcolLoop2GP' of https://github.com/dustinswales/ccpp…
dustinswales Aug 1, 2022
1590813
Add files via upload
AndrewHazelton Aug 20, 2022
61d6c90
Merge pull request #4 from hafs-community/Hurricane-PBL
BinLiu-NOAA Aug 20, 2022
59058b7
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into HEAD
dustinswales Aug 22, 2022
79eb469
Changes for refactor
dustinswales Aug 24, 2022
99e0324
Getting really close...
dustinswales Aug 24, 2022
e1a452f
Updated submodule pointer
dustinswales Aug 24, 2022
eeac3d6
Some housekeeping. Working in UFS.
dustinswales Aug 26, 2022
ad28dca
Reorganize logic in solver loop
dustinswales Sep 7, 2022
dab7efd
Address issue 957
dustinswales Sep 7, 2022
d35be37
Some modifications for rrtmgp physics blocking to work.
Sep 23, 2022
b65af77
Revert "Some modifications for rrtmgp physics blocking to work."
dustinswales Oct 3, 2022
1b34a74
Move allocation of RRTMGP DDTs to init
dustinswales Oct 3, 2022
598a88b
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
Oct 4, 2022
d55d8f0
Merge branch 'main' of https://github.com/NCAR/ccpp-physics into HEAD
Oct 4, 2022
c7d7b2b
Merge remote-tracking branch 'remotes/upstream/ufs/dev' into feature/…
BinLiu-NOAA Oct 9, 2022
0ffc805
Merge remote-tracking branch 'remotes/upstream/ufs/dev' into feature/…
BinLiu-NOAA Oct 22, 2022
ac98ffb
parameteric updates in prognostic convection scheme
lisa-bengtsson Oct 28, 2022
de0f315
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
lisa-bengtsson Oct 28, 2022
78b5fa5
update TKE contribution from cu for progsigma in deep and shallow cu
lisa-bengtsson Oct 31, 2022
2e92ac3
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
lisa-bengtsson Nov 7, 2022
fa06f28
Enhanced stability of drag_suite module and added diagnostics
mdtoyNOAA Nov 8, 2022
3ad8050
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
mdtoyNOAA Nov 8, 2022
af8aaaf
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
lisa-bengtsson Nov 8, 2022
d8af1d7
Merge remote-tracking branch 'remotes/upstream/ufs/dev' into feature/…
BinLiu-NOAA Nov 13, 2022
7e84121
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
mdtoyNOAA Nov 14, 2022
48ac4b7
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
lisa-bengtsson Nov 16, 2022
cffe344
Further tuning and refinement of prognostic closure
lisa-bengtsson Nov 17, 2022
224a183
Uniformly apply REAL(kind=kind_phys) from CCPP-Physics machine.F defi…
timsliwinski-noaa Nov 17, 2022
d062c01
correct a typo
lisa-bengtsson Nov 17, 2022
0af5474
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
mdtoyNOAA Nov 21, 2022
1a9fcfe
Updated standard_names for do_gsl_drag_ls_bl, do_gsl_drag_ss and do_g…
mdtoyNOAA Nov 21, 2022
253fcea
Incorporated dustinswales suggestions in PR#22
mdtoyNOAA Nov 23, 2022
b1b2692
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
mdtoyNOAA Nov 23, 2022
938b77a
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
lisa-bengtsson Nov 28, 2022
0e3c0a6
Bug fix for CI tests.
Nov 28, 2022
562fcce
Merge pull request #1 from dustinswales/hotfix_CItest
lisa-bengtsson Nov 29, 2022
86ff927
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
mdtoyNOAA Nov 29, 2022
bd174bc
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
lisa-bengtsson Nov 29, 2022
9a66a9e
using NoahMP tiled tq2m with the bug fix
HelinWei-NOAA Nov 30, 2022
d11b702
Merge remote-tracking branch 'upstream/ufs/dev' into feature/hafs_syn…
wramstrom Dec 1, 2022
0d488db
Make input assumed-shape
Dec 1, 2022
b82f0d3
Merge pull request #1 from dustinswales/hotfix_uwm1488
mdtoyNOAA Dec 2, 2022
9d45cd1
Merge pull request #25 from HelinWei-NOAA/fix_tq2m_diagnoahmp
ChunxiZhang-NOAA Dec 2, 2022
02f0bae
Merge branch 'mynnsfc_uniform_real_kind' of https://github.com/timsli…
Dec 2, 2022
eefb777
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
lisa-bengtsson Dec 2, 2022
14db65d
Merge remote-tracking branch 'upstream/ufs/dev' into feature/hafs_syn…
BinLiu-NOAA Dec 4, 2022
befc336
Merge pull request #18 from lisa-bengtsson/progc_update
ChunxiZhang-NOAA Dec 5, 2022
4b572f6
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
mdtoyNOAA Dec 5, 2022
6d6954e
Turn off debug output
Dec 6, 2022
879858f
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
Dec 6, 2022
a23b876
Modified calculation of dtfac in drag_suite.F90 and revised various l…
mdtoyNOAA Dec 7, 2022
9277a29
Removed passage of variables 'ak' and 'bk' to drag_suite -- these are…
mdtoyNOAA Dec 7, 2022
3dea70e
Update satmedmfvdifq.F to address some PR review comments related to …
BinLiu-NOAA Dec 7, 2022
5a091c8
Added clarifying remarks in drag_suite and unified_ugwp modules
mdtoyNOAA Dec 8, 2022
cee2bbc
For the tc_pbl related changes in satmedmfvdifq.F, set bfac as a
BinLiu-NOAA Dec 9, 2022
a3c7ac0
Update tc_pbl standard and long names in satmedmfvdifq.meta according…
BinLiu-NOAA Dec 9, 2022
bf4ac7e
Merge remote-tracking branch 'upstream/ufs/dev' into feature/hafs_syn…
BinLiu-NOAA Dec 11, 2022
688c771
Merge pull request #27 from hafs-community/feature/hafs_sync_202210
grantfirl Dec 14, 2022
712bca2
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
mdtoyNOAA Dec 15, 2022
db9be65
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
Dec 16, 2022
df5f5e2
Merge pull request #22 from mdtoyNOAA/ufs/dev_ugwp_improvements
ChunxiZhang-NOAA Dec 22, 2022
5b17798
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
Jan 5, 2023
4315912
Merge pull request #28 from dustinswales/mynnsfc_uniform_real_kind
ChunxiZhang-NOAA Jan 6, 2023
1441ed4
Commit before sync with upstream
Jan 13, 2023
4e87d3e
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
Jan 13, 2023
45ed377
Bug fix for cloud effective radius for convective clouds (HR1)
ChunxiZhang-NOAA Jan 25, 2023
0befb41
Added documenation back into scheme file.
dustinswales Jan 25, 2023
0a053a0
Address reviewers comments
dustinswales Jan 25, 2023
377c0ba
Address more reviewers comments
dustinswales Jan 26, 2023
c44a717
Merge pull request #35 from ChunxiZhang-NOAA/bugfix/cloud_rad
grantfirl Jan 30, 2023
cb2ad0b
Merge branch 'ufs/dev' of https://github.com/ufs-community/ccpp-physi…
dustinswales Feb 1, 2023
662eeb1
Interface changes for SP build in GP
dustinswales Feb 3, 2023
fb066dd
Merge pull request #34 from dustinswales/rrtmgp_refactor
ChunxiZhang-NOAA Feb 7, 2023
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
6 changes: 2 additions & 4 deletions .github/workflows/ci_fv3_ccpp_prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ name: CI test to run FV3 ccpp_prebuild step
on: [push, pull_request]

jobs:
build-linux:
ccpp-prebuild-FV3:

# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
max-parallel: 5
runs-on: ubuntu-20.04

steps:
- name: Checkout current ccpp-physics code
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/ci_scm_ccpp_prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ name: CI test to run SCM ccpp_prebuild step
on: [push, pull_request]

jobs:
build-linux:
ccpp-prebuild-SCM:

# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
max-parallel: 5
runs-on: ubuntu-20.04

steps:

Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "physics/rte-rrtmgp"]
path = physics/rte-rrtmgp
url = https://github.com/earth-system-radiation/rte-rrtmgp
branch = dtc/ccpp
branch = main
12 changes: 0 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,10 @@ get_filename_component(LOCAL_CURRENT_SOURCE_DIR ${FULL_PATH_TO_CMAKELISTS} DIREC
# List of files that need to be compiled without OpenMP
set(SCHEMES_OPENMP_OFF ${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/rrtmgp/mo_gas_optics.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/rrtmgp/mo_rrtmgp_constants.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/rrtmgp/mo_rrtmgp_util_reorder.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/rrtmgp/mo_gas_concentrations.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/rrtmgp/mo_rrtmgp_util_string.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/rrtmgp/kernels/mo_gas_optics_kernels.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/rrtmgp/kernels/mo_rrtmgp_util_reorder_kernels.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/rrtmgp/mo_gas_optics_rrtmgp.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/tests/mo_testing_io.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/tests/clear_sky_regression.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/extensions/mo_rrtmgp_clr_all_sky.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/extensions/mo_fluxes_byband.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/extensions/solar_variability/mo_solar_variability.F90
Expand All @@ -97,14 +93,6 @@ set(SCHEMES_OPENMP_OFF ${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/rrtmgp/mo_
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/extensions/mo_compute_bc.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/extensions/cloud_optics/mo_cloud_sampling.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/extensions/cloud_optics/mo_cloud_optics.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/examples/mo_load_coefficients.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/examples/rfmip-clear-sky/rrtmgp_rfmip_sw.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/examples/rfmip-clear-sky/mo_rfmip_io.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/examples/rfmip-clear-sky/rrtmgp_rfmip_lw.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/examples/mo_simple_netcdf.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/examples/all-sky/rrtmgp_allsky.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/examples/all-sky/mo_load_cloud_coefficients.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/examples/all-sky/mo_garand_atmos_io.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/rte/mo_rte_config.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/rte/mo_source_functions.F90
${LOCAL_CURRENT_SOURCE_DIR}/physics/rte-rrtmgp/rte/mo_rte_sw.F90
Expand Down
48 changes: 25 additions & 23 deletions physics/GFS_rrtmgp_cloud_mp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module GFS_rrtmgp_cloud_mp
reice_min = 10.0, & ! Minimum ice size allowed by GFDL MP scheme
reice_max = 150.0 ! Maximum ice size allowed by GFDL MP scheme

public GFS_rrtmgp_cloud_mp_run
public GFS_rrtmgp_cloud_mp_init, GFS_rrtmgp_cloud_mp_run, GFS_rrtmgp_cloud_mp_finalize

contains

Expand All @@ -45,7 +45,7 @@ module GFS_rrtmgp_cloud_mp
subroutine GFS_rrtmgp_cloud_mp_run(nCol, nLev, nTracers, ncnd, i_cldliq, i_cldice, &
i_cldrain, i_cldsnow, i_cldgrpl, i_cldtot, i_cldliq_nc, i_cldice_nc, i_twa, kdt, &
imfdeepcnv, imfdeepcnv_gf, imfdeepcnv_samf, doSWrad, doLWrad, effr_in, lmfshal, &
ltaerosol,mraerosol, icloud, imp_physics, imp_physics_thompson, imp_physics_gfdl, &
ltaerosol,mraerosol, icloud, imp_physics, imp_physics_thompson, imp_physics_gfdl, &
lgfdlmprad, do_mynnedmf, uni_cld, lmfdeep2, p_lev, p_lay, t_lay, qs_lay, q_lay, &
relhum, lsmask, xlon, xlat, dx, tv_lay, effrin_cldliq, effrin_cldice, &
effrin_cldrain, effrin_cldsnow, tracer, cnv_mixratio, cld_cnv_frac, qci_conv, &
Expand Down Expand Up @@ -462,6 +462,7 @@ subroutine cloud_mp_MYNN(nCol, nLev, lsmask, t_lay, p_lev, p_lay, qs_lay, relhum
enddo
end subroutine cloud_mp_MYNN


!> \ingroup GFS_rrtmgp_cloud_mp
!! Compute cloud radiative properties for SAMF convective cloud scheme.
!!
Expand All @@ -484,47 +485,48 @@ subroutine cloud_mp_SAMF(nCol, nLev, t_lay, p_lev, p_lay, qs_lay, relhum,
nCol, & ! Number of horizontal grid points
nLev ! Number of vertical layers
real(kind_phys), intent(in) :: &
con_g, & ! Physical constant: gravitational constant
con_ttp, & ! Triple point temperature of water (K)
con_g, & ! Physical constant: gravity (m s-2)
con_ttp, & ! Triple point temperature of water (K)
alpha0 !
real(kind_phys), dimension(:,:),intent(in) :: &
t_lay, & ! Temperature at layer centers (K)
p_lev, & ! Pressure at layer interfaces (Pa)
p_lay, & !
qs_lay, & !
relhum, & !
cnv_mixratio ! Convective cloud mixing-ratio (kg/kg)
t_lay, & ! Temperature at layer-centers (K)
p_lev, & ! Pressure at layer-interfaces (Pa)
p_lay, & ! Presure at layer-centers (Pa)
qs_lay, & ! Specific-humidity at layer-centers (kg/kg)
relhum, & ! Relative-humidity (1)
cnv_mixratio ! Convective cloud mixing-ratio (kg/kg)
! Outputs
real(kind_phys), dimension(:,:),intent(inout) :: &
cld_cnv_lwp, & ! Convective cloud liquid water path
cld_cnv_reliq, & ! Convective cloud liquid effective radius
cld_cnv_iwp, & ! Convective cloud ice water path
cld_cnv_reice, & ! Convective cloud ice effecive radius
cld_cnv_frac ! Convective cloud-fraction (1)
cld_cnv_frac ! Convective cloud-fraction
! Local
integer :: iCol, iLay
real(kind_phys) :: tem1, deltaP, clwc
real(kind_phys) :: tem0, tem1, deltaP, clwc

tem0 = 1.0e5/con_g
do iLay = 1, nLev
do iCol = 1, nCol
if (cnv_mixratio(iCol,iLay) > 0._kind_phys) then
tem1 = min(1.0, max(0.0, (con_ttp-t_lay(iCol,iLay))*0.05))
deltaP = abs(p_lev(iCol,iLay+1)-p_lev(iCol,iLay))*0.01
clwc = max(0.0, cnv_mixratio(iCol,iLay)) * con_g * deltaP
cld_cnv_iwp(iCol,iLay) = clwc * tem1
cld_cnv_lwp(iCol,iLay) = clwc - cld_cnv_iwp(iCol,iLay)
clwc = max(0.0, cnv_mixratio(iCol,iLay)) * tem0 * deltaP
cld_cnv_iwp(iCol,iLay) = clwc * tem1
cld_cnv_lwp(iCol,iLay) = clwc - cld_cnv_iwp(iCol,iLay)
cld_cnv_reliq(iCol,iLay) = reliq_def
cld_cnv_reice(iCol,iLay) = reice_def

! Xu-Randall (1996) cloud-fraction.
cld_cnv_frac(iCol,iLay) = cld_frac_XuRandall(p_lay(iCol,iLay), &
cld_cnv_frac(iCol,iLay) = cld_frac_XuRandall(p_lay(iCol,iLay), &
qs_lay(iCol,iLay), relhum(iCol,iLay), cnv_mixratio(iCol,iLay), alpha0)
endif
enddo
enddo

end subroutine cloud_mp_SAMF

!> \ingroup GFS_rrtmgp_cloud_mp
!! This routine computes the cloud radiative properties for a "unified cloud".
!! - "unified cloud" implies that the cloud-fraction is PROVIDED.
Expand Down Expand Up @@ -656,7 +658,6 @@ subroutine cloud_mp_uni(nCol, nLev, nTracers, ncnd, i_cldliq, i_cldice, i_cldrai
enddo ! nLev

end subroutine cloud_mp_uni

!> \ingroup GFS_rrtmgp_cloud_mp
!! This routine computes the cloud radiative properties for the Thompson cloud micro-
!! physics scheme.
Expand Down Expand Up @@ -834,11 +835,11 @@ function cld_frac_XuRandall(p_lay, qs_lay, relhum, cld_mr, alpha)
return
end function

!> \ingroup GFS_rrtmgp_cloud_mp
!! This routine is a wrapper to update the Thompson effective particle sizes used by the
!! RRTMGP radiation scheme.
!!
!! \section cmp_reff_Thompson_gen General Algorithm
! ######################################################################################
! This routine is a wrapper to update the Thompson effective particle sizes used by the
! RRTMGP radiation scheme.
!
! ######################################################################################
subroutine cmp_reff_Thompson(nLev, nCol, i_cldliq, i_cldice, i_cldsnow, i_cldice_nc, &
i_cldliq_nc, i_twa, q_lay, p_lay, t_lay, tracer, con_eps, con_rd, ltaerosol, &
mraerosol, lsmask, effrin_cldliq, effrin_cldice, effrin_cldsnow)
Expand Down Expand Up @@ -922,4 +923,5 @@ subroutine cmp_reff_Thompson(nLev, nCol, i_cldliq, i_cldice, i_cldsnow, i_cldice
enddo

end subroutine cmp_reff_Thompson

end module GFS_rrtmgp_cloud_mp
6 changes: 3 additions & 3 deletions physics/GFS_rrtmgp_cloud_mp.meta
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@
kind = kind_phys
intent = inout
[tracer]
standard_name = chemical_tracers
long_name = chemical tracers
units = g g-1
standard_name = tracer_concentration
long_name = model layer mean tracer concentration
units = kg kg-1
dimensions = (horizontal_loop_extent,vertical_layer_dimension,number_of_tracers)
type = real
kind = kind_phys
Expand Down
188 changes: 0 additions & 188 deletions physics/GFS_rrtmgp_lw_post.F90

This file was deleted.

Loading