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

Accumulation of RRTMGP development #614

Merged
merged 36 commits into from
Apr 30, 2021

Conversation

dustinswales
Copy link
Collaborator

@dustinswales dustinswales commented Apr 9, 2021

This PR contains several fixes and improvements to RRTMGP and its coupling to the Thompson microphysics.

  • Bug fix (indexing error) for temperature being passed to GP. (Only exercised in rare cases in EMC's C768L127 configuration).
  • New coupling of RRTMGP to the RRFS physics. Based on fv3_regional_quilt using FV3_GFS_v15_thompson_mynn_RRTMGP.
  • Revised approach to the LW flux adjustment using the full vertical profile of the Jacobian of the upwelling LW. Previously only the surface flux was adjusted.
  • Move allocation of GP interstitial DDTs from the LW scheme to GFS_typedefs.F90 interstitial_create/reset.

Edit from @climbfuji:

  • Fix a bug for jet where the compiler flag adjustments in FV3/ccpp/physics/CMakeLists.txt were ignored

dustinswales and others added 23 commits February 23, 2021 17:56
…Avoids error when k-distribution file does not contain these fields.
@climbfuji climbfuji requested a review from Qingfu-Liu April 23, 2021 19:27
physics/dcyc2.f Outdated Show resolved Hide resolved
physics/dcyc2.f Outdated Show resolved Hide resolved
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}")
#set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note. @DusanJovic-NOAA and I are currently working on a cleanup of the compiler flag settings in CMakeLists.txt, very much needed as you can tell from working with this mess yourself. Hopefully it will be easier to turn off OpenMP for the RRTMGP files listed below in the future.

physics/dcyc2.f Outdated Show resolved Hide resolved
physics/dcyc2.meta Outdated Show resolved Hide resolved
physics/dcyc2.f Outdated Show resolved Hide resolved
physics/dcyc2.f Show resolved Hide resolved
physics/dcyc2.meta Outdated Show resolved Hide resolved
physics/rrtmgp_lw_gas_optics.F90 Outdated Show resolved Hide resolved
physics/rrtmgp_lw_cloud_optics.F90 Show resolved Hide resolved
Copy link
Collaborator

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR looks good to me. Changes to CMakeLists.txt make the existing mess even messier, but this will be rewritten entirely in the near future.

@climbfuji climbfuji requested a review from tanyasmirnova April 28, 2021 19:25
dustinswales and others added 3 commits April 28, 2021 20:41
@climbfuji climbfuji merged commit 5015be4 into NCAR:master Apr 30, 2021
@dustinswales dustinswales deleted the addLWadj_fullProfile branch May 10, 2021 17:22
HelinWei-NOAA pushed a commit to HelinWei-NOAA/ccpp-physics that referenced this pull request Feb 26, 2023
* Six new winter wx diags added to output, accumulated fields added to restart file and changed nsradar_reset, radar_reset to something that makes more sense, that is, nsfullradar_diag and fullradar_diag. Also, added  new namelist parameter to use new precip ice density with the  NOAH LSM. Code changes to upp also made to include the new winter wx diags.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants