Skip to content

Commit ffe4653

Browse files
committed
Merge remote-tracking branch 'remotes/origin/feature/3dtke_update' into feature/hafsv2p2_baseline
2 parents 7458379 + 5282714 commit ffe4653

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2430
-420
lines changed
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1-
## Description of Changes:
1+
## Description of Changes:
22
One or more paragraphs describing the problem, solution, and required changes.
33

4-
## Tests Conducted:
5-
Explicitly state what tests were run on these changes, or if any are still pending (for README or other text-only changes, just put "None required". Make note of the compilers used, the platform/machine, and other relevant details as necessary. For more complicated changes, or those resulting in scientific changes, please be explicit!
6-
**OR** Add any links to tests conducted. For example, "See ufs-community/ufs-weather-model/pull/<pr_number>"
4+
## Tests Conducted:
5+
Explicitly state what tests were run on these changes, or if any are still pending (for README or other text-only changes, just put "None required". Make note of the compilers used, the platform/machine, and other relevant details as necessary. For more complicated changes, or those resulting in scientific changes, please be explicit!
6+
**OR** Add any links to tests conducted. For example, "See ufs-community/ufs-weather-model#<pr_number>"
77

88
## Dependencies:
99
Add any links to parent PRs (e.g. SCM and/or UFS PRs) or submodules (e.g. rte-rrtmgp). For example:
10-
- NCAR/ccpp-framework/pull/<pr_number>
11-
- NOAA-EMC/fv3atm/pull/<pr_number>
12-
- ufs-community/ufs-weather-model/pull/<pr_number>
10+
- NCAR/ccpp-framework#<pr_number>
11+
- NOAA-EMC/fv3atm#<pr_number>
12+
- ufs-community/ufs-weather-model/#<pr_number>
1313

1414
## Documentation:
1515
Does this PR add new capabilities that need to be documented or require modifications to the existing documentation? If so, brief supporting material can be provided here. Contact the CODEOWNERS if your PR requires extensive updates to the documentation. See https://github.com/NCAR/ccpp-doc for Technical Documentation or https://dtcenter.org/community-code/common-community-physics-package-ccpp/documentation for the latest Scientific Documentation.
1616

17-
## Issue (optional):
18-
If this PR is resolving or referencing one or more issues, in this repository or elewhere, list them here. For example, "Fixes issue mentioned in #123" or "Related to bug in https://github.com/NCAR/other_repository/pull/63"
17+
## Issue (optional):
18+
If this PR is resolving or referencing one or more issues, in this repository or elewhere, list them here. For example, "Fixes issue mentioned in #123" or "Related to bug in NCAR/other_repository#123"
1919

20-
## Contributors (optional):
20+
## Contributors (optional):
2121
If others have contributed to this work aside from the PR author, list them here
22-

.github/workflows/basic_checks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7+
if: github.repository == 'NCAR/ccpp-physics' || github.repository == 'ufs-community/ccpp-physics'
78

89
runs-on: macos-latest
910

.github/workflows/ci_fv3_ccpp_prebuild.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ on: [push, pull_request]
44

55
jobs:
66
ccpp-prebuild-FV3:
7+
if: github.repository == 'NCAR/ccpp-physics' || github.repository == 'ufs-community/ccpp-physics'
78

89
# The type of runner that the job will run on
9-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1011

1112
steps:
1213
- name: Checkout current ccpp-physics code
@@ -38,11 +39,11 @@ jobs:
3839
git remote add remote_local $GIT_REMOTE_URL
3940
git fetch remote_local $GIT_REMOTE_BRANCH
4041
git checkout remote_local/$GIT_REMOTE_BRANCH
41-
42-
- name: Set up Python 3.8.5
42+
43+
- name: Set up Python 3.10.13
4344
uses: actions/setup-python@v3
4445
with:
45-
python-version: 3.8.5
46+
python-version: 3.10.13
4647

4748
- name: Add conda to system path
4849
run: |
@@ -53,4 +54,4 @@ jobs:
5354
run: |
5455
cd /home/runner/work/ccpp-physics/ccpp-physics/fv3atm/ccpp/
5556
mkdir -p /home/runner/work/ccpp-physics/ccpp-physics/fv3atm/bin/ccpp/physics/physics/
56-
./framework/scripts/ccpp_prebuild.py --config config/ccpp_prebuild_config.py
57+
./framework/scripts/ccpp_prebuild.py --config config/ccpp_prebuild_config.py

.github/workflows/ci_scm_ccpp_prebuild.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ on: [push, pull_request]
44

55
jobs:
66
ccpp-prebuild-SCM:
7+
if: github.repository == 'NCAR/ccpp-physics' || github.repository == 'ufs-community/ccpp-physics'
78

89
# The type of runner that the job will run on
9-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-latest
1011

1112
steps:
1213

@@ -42,11 +43,11 @@ jobs:
4243
git remote add remote_local $GIT_REMOTE_URL
4344
git fetch remote_local $GIT_REMOTE_BRANCH
4445
git checkout remote_local/$GIT_REMOTE_BRANCH
45-
46-
- name: Set up Python 3.8.5
46+
47+
- name: Set up Python 3.10.13
4748
uses: actions/setup-python@v3
4849
with:
49-
python-version: 3.8.5
50+
python-version: 3.10.13
5051

5152
- name: Add conda to system path
5253
run: |
@@ -58,4 +59,4 @@ jobs:
5859
cd /home/runner/work/ccpp-physics/ccpp-physics/ccpp-scm/
5960
git status
6061
mkdir -p /home/runner/work/ccpp-physics/ccpp-physics/ccpp-scm/scm/bin/ccpp/physics/physics/
61-
./ccpp/framework/scripts/ccpp_prebuild.py --config ccpp/config/ccpp_prebuild_config.py
62+
./ccpp/framework/scripts/ccpp_prebuild.py --config ccpp/config/ccpp_prebuild_config.py

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,12 @@ target_include_directories(ccpp_physics PUBLIC
196196
target_link_libraries(ccpp_physics PRIVATE MPI::MPI_Fortran)
197197
target_link_libraries(ccpp_physics PUBLIC w3emc::w3emc_d
198198
sp::sp_d
199-
NetCDF::NetCDF_Fortran)
199+
NetCDF::NetCDF_Fortran
200+
)
201+
#add FMS for FV3 only
202+
if(FV3)
203+
target_link_libraries(ccpp_physics PUBLIC fms)
204+
endif()
200205

201206
# Define where to install the library
202207
install(TARGETS ccpp_physics

CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ physics/GWD/ugwpv1_gsldrag_post.* @md
3636
physics/GWD/unified_ugwp* @mdtoyNOAA @grantfirl @rhaesung @Qingfu-Liu @dustinswales
3737
physics/MP/Ferrier_Aligo/module_MP_FER_HIRES.* @ericaligo-NOAA @grantfirl @rhaesung @Qingfu-Liu @dustinswales
3838
physics/MP/Ferrier_Aligo/mp_fer_hires.* @ericaligo-NOAA @grantfirl @rhaesung @Qingfu-Liu @dustinswales
39-
physics/MP/GFDL/GFDL_parse_tracers.F90 @grantfirl @rhaesung @Qingfu-Liu @dustinswales
4039
physics/MP/GFDL/v1_2019/gfdl_cloud_microphys.* @RuiyuSun @grantfirl @rhaesung @Qingfu-Liu @dustinswales
4140
physics/MP/GFDL/v1_2019/gfdl_cloud_microphys_mod.* @RuiyuSun @grantfirl @rhaesung @Qingfu-Liu @dustinswales
4241
physics/MP/GFDL/v3_2022/gfdl_cloud_microphys_v3.* @RuiyuSun @grantfirl @rhaesung @Qingfu-Liu @dustinswales

physics/CONV/C3/cu_c3_driver.F90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,9 @@ subroutine cu_c3_driver_run(ntracer,garea,im,km,dt,flag_init,flag_restart,&
657657
enddo
658658
do i = its,itf
659659
if(mconv(i).lt.0.)mconv(i)=0.
660-
if((dx(i)<6500.).and.do_mynnedmf.and.(maxMF(i).gt.0.))ierr(i)=555
660+
if(do_mynnedmf) then
661+
if((dx(i)<6500.).and.(maxMF(i).gt.0.))ierr(i)=555
662+
endif
661663
enddo
662664
!$acc end kernels
663665
if (dx(its)<6500.) then

physics/CONV/Grell_Freitas/cu_gf_deep.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5496,7 +5496,7 @@ subroutine get_partition_liq_ice(ierr,tn,po_cup, p_liq_ice,melting_layer
54965496
,itf,ktf,its,ite, kts,kte, cumulus )
54975497
implicit none
54985498
character *(*), intent (in) :: cumulus
5499-
integer ,intent (in ) :: itf,ktf, its,ite, kts,kte
5499+
integer ,intent (in ) :: itf,ktf, its,ite, kts,kte
55005500
real(kind=kind_phys), intent (in ), dimension(its:ite,kts:kte) :: tn,po_cup
55015501
real(kind=kind_phys), intent (inout), dimension(its:ite,kts:kte) :: p_liq_ice,melting_layer
55025502
!$acc declare copyin(tn,po_cup) copy(p_liq_ice,melting_layer)

physics/CONV/SAMF/samfdeepcnv.f

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2537,10 +2537,10 @@ subroutine samfdeepcnv_run (im,km,first_time_step,restart, &
25372537
c
25382538
c------- final changed variable per unit mass flux
25392539
c
2540-
!> - If grid size is less than a threshold value (dxcrtas: currently 8km if progsigma is not used and 30km if progsigma is used), the quasi-equilibrium assumption of Arakawa-Schubert is not used any longer.
2540+
!> - If grid size is less than a threshold value (dxcrtas: currently 8km if progsigma is not used), or progsigma = true, the quasi-equilibrium assumption of Arakawa-Schubert is not used any longer.
25412541
!
25422542
if(progsigma)then
2543-
dxcrtas=30.e3
2543+
dxcrtas=500.e3
25442544
dxcrtuf=10.e3
25452545
else
25462546
dxcrtas=8.e3

physics/CONV/SAMF/samfdeepcnv.meta

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@
472472
[omegain]
473473
standard_name = prognostic_updraft_velocity_in_convection
474474
long_name = convective updraft velocity
475-
units = frac
475+
units = Pa s-1
476476
dimensions = (horizontal_loop_extent,vertical_layer_dimension)
477477
type = real
478478
kind = kind_phys
@@ -481,7 +481,7 @@
481481
[omegaout]
482482
standard_name = updraft_velocity_updated_by_physics
483483
long_name = convective updraft velocity updated by physics
484-
units = frac
484+
units = Pa s-1
485485
dimensions = (horizontal_loop_extent,vertical_layer_dimension)
486486
type = real
487487
kind = kind_phys

0 commit comments

Comments
 (0)