Skip to content

Updated meta data tables for gfdl cloud microphysics#80

Closed
kellylittleblackdog wants to merge 5 commits into
NCAR:masterfrom
kellylittleblackdog:master
Closed

Updated meta data tables for gfdl cloud microphysics#80
kellylittleblackdog wants to merge 5 commits into
NCAR:masterfrom
kellylittleblackdog:master

Conversation

@kellylittleblackdog
Copy link
Copy Markdown

Please review new variables requested by meta data table.

!! | errflg | error_flag | error flag for error handling in CCPP | flag | 0 | integer | | out | F |
!! |-------------|---------------|---------------------------------------------|---------|------|-----------|--------|--------|----------|
!!
subroutine gfdl_cloud_microphys_pre_init(do_shoc, errmsg, errflg)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Currently CCPP does not have the capability to run the scheme _init and _finalize routines as part of the and steps. We need to add this so that this routine gfdl_cloud_microphys_pre_init will be executed.

Comment thread physics/gfdl_cloud_microphys.F90 Outdated

if(do_shoc) then
write(errmsg,'(*(a))') &
& 'SHOC is not currently compatible with GFDL MP -- shutting down'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I suggest to remove the " -- shutting down" part of the error message as it is up to the host model to decide what to do if CCPP returns with ierr /= 0.

Comment thread physics/gfdl_cloud_microphys.F90 Outdated

!!=====================================

module gfdl_cloud_microphys_mod
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This module must be named "gfdl_cloud_microphys" to match the names of its _run, _init and _finalize routines.

Comment thread physics/gfdl_cloud_microphys.F90 Outdated
! --- interface variables (output)
real(kind=kind_phys), intent( out) :: seconds
real(kind=kind_phys), intent( out), dimension(:,:) :: land, area, rain0, snow0, ice0, graupel0
real(kind=kind_phys), intent( out), allocatable, dimension(:,:,:) :: delp, dz, uin, vin, pt, qv1, ql1, qr1, qg1, qa1, qn1, qi1, &
Copy link
Copy Markdown
Collaborator

@climbfuji climbfuji May 17, 2018

Choose a reason for hiding this comment

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

Several comments here: (1) where are these arrays deallocated? (2) by definition we cannot allocate arrays in a scheme that get used in other schemes (and pre (gfdl_cloud_microphys_pre) and main (gfdl_cloud_microphys) are different schemes). These variables have to become interstitial variables that get allocated in GFS_typedefs when GFDL physics are run (check with namelist/SDF).

When later the automatic flipping of arrays is implemented and automated inside the scheme caps, we can get rid of the extra variables that deal with the flipping.

@ligiabernardet @llpcarson @grantfirl What is your opinion on this?


real :: missing_value = - 1.e10

logical :: module_is_initialized = .false.
Copy link
Copy Markdown
Collaborator

@climbfuji climbfuji May 17, 2018

Choose a reason for hiding this comment

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

As just discussed, we can keep these as long as they are not shared with any other model and they do not depend on the spatial dimension im/ix/levs.

@ligiabernardet
Copy link
Copy Markdown
Collaborator

It appears that an argument table for gfdl_cloud_microphys_finalize is needed. Also, it appears that the names for the three argument tables in the gfdl_cloud_microphys_post module are incorrectly called "pre" instead of "post".

@climbfuji
Copy link
Copy Markdown
Collaborator

@kellylittleblackdog how is the current status of the GFDL MP? Can you update this PR and those for the other repositories with what you have so that I can start integrating it, please? Thanks, Dom

@climbfuji
Copy link
Copy Markdown
Collaborator

@kellylittleblackdog this PR is no longer needed, or?

@kellylittleblackdog
Copy link
Copy Markdown
Author

kellylittleblackdog commented Jul 2, 2018 via email

@kellylittleblackdog
Copy link
Copy Markdown
Author

Replaced by 108

@haiqinli haiqinli mentioned this pull request Aug 17, 2018
climbfuji pushed a commit to climbfuji/ccpp-physics that referenced this pull request Mar 16, 2021
…merged_into_gsl_develop

Update thompson mp 20210213 (NCAR#567) for gsl/develop
hannahcbarnes pushed a commit to hannahcbarnes/ccpp-physics that referenced this pull request Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants