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

incorporate csawMG update and pass both intel and GNU RT tests #171

Closed

Conversation

AnningCheng-NOAA
Copy link
Collaborator

ajor updated CSAW deep convective scheme: considering sigma vertical veriantion and reduction on fluxes instead of tendency etc.
• Regression tests are performed on the new version of CSAW for GNU and intel compilers
Here is a EMail from Don describe the changes:
On Thu, Oct 24, 2019 at 3:01 PM Donald Dazlich - NOAA Affiliate <[email protected]> wrote:
Hi Moorthi, Anning,
Dave and I have been using the GFS version of CS to redo our implementation of AW more completely and consistently. Now, you will find that the fix_form implemetation of the tendencies match up very closely with the traditional form. Also you will notice that it is the fluxes for each cloud type (and the downdraft) that are saved and the reduction is done on the fluxes, not the tendency computed from the flux divergence. Since sigma is a function of height the latter approach is incorrect. I’ve also dimensioned several cloud type variables nctp+1 - the nctp+1 slot has downdraft output. Another addition is the sorting of the lamdas after they are computed for all cloud types, then computing the sigma. This approach is detailed in a manuscript Dave is working on. Also, sigma is not applied to the inputs to the downdraft routine, but to the outputs, which are now mass fluxes not tendencies. The water and thermodynamic budgets remain satisfied now.
I’ve attached my version below. It should be pretty close to your version with regards to the interface so you shouldn’t have to do much work with it.
Regards,
Don

@AnningCheng-NOAA
Copy link
Collaborator Author

AnningCheng-NOAA commented Feb 15, 2024 via email

Copy link
Collaborator

@dustinswales dustinswales left a comment

Choose a reason for hiding this comment

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

There are lots of whitespace/indentation changes, along with quite a few code changes, making reviewing this difficult. I feel the changes aren't terribly invasive, but it's hard to tell in it's current form.
It also seems that the inline documentation for the Chikira-Sugiyama convective scheme was removed. This will need to be added back in, and potentially updated with any recent algorithm modifications.

module cs_conv
!---------------------------------------------------------------------------------
! Purpose:
!
!>---------------------------------------------------------------------------------
! Purpose:
!
!> Interface for Chikira-Sugiyama convection scheme
!!
Copy link
Collaborator

Choose a reason for hiding this comment

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

The "!!" are needed for documentation (e.g. https://dtcenter.ucar.edu/GMTB/v5.0.0/sci_doc/group__cs__scheme.html#details), please revert.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done. Please check.

!---------------------------------------------------------------------------------
!
use machine , only : kind_phys
use machine , only : kind_phys
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove whitespace

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done. Please check.

physics/CONV/Chikira_Sugiyama/cs_conv.F90 Outdated Show resolved Hide resolved
physics/CONV/Chikira_Sugiyama/cs_conv.F90 Outdated Show resolved Hide resolved
physics/CONV/Chikira_Sugiyama/cs_conv.F90 Outdated Show resolved Hide resolved
physics/CONV/Chikira_Sugiyama/cs_conv.F90 Show resolved Hide resolved
@@ -70,7 +70,6 @@ subroutine cs_conv_aw_adj_run(im, levs, do_cscnv, do_aw, do_shoc, &

! adjust sfc rainrate for conservation
! vertically integrate reduction of water increments, reduce precip by that amount

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove

physics/CONV/Chikira_Sugiyama/cs_conv_pre.F90 Outdated Show resolved Hide resolved
physics/MP/Morrison_Gettelman/m_micro.F90 Outdated Show resolved Hide resolved
physics/MP/Morrison_Gettelman/m_micro.F90 Outdated Show resolved Hide resolved
@AnningCheng-NOAA
Copy link
Collaborator Author

Sorry for those empty lines, coming from debugging or from the old version of the code.

@grantfirl
Copy link
Collaborator

@AnningCheng-NOAA I'm going to try to clean up some of the whitespace and documentation changes so that the PR only shows actually meaningful changes. I may open another PR to make it easier to track and ask for you to review.

@AnningCheng-NOAA
Copy link
Collaborator Author

AnningCheng-NOAA commented Mar 6, 2024 via email

@grantfirl
Copy link
Collaborator

Closed in favor of #181 that started from the top of ufs/dev and has fewer whitespace/comment changes that make it difficult to review and understand the changes.

@grantfirl grantfirl closed this Mar 7, 2024
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.

4 participants