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

Updating SCM codebase to work with CCPP physics and framework changes since the new year (plus updating SDFs and input namelists) #96

Merged
merged 5 commits into from
Mar 18, 2019

Conversation

grantfirl
Copy link
Collaborator

@grantfirl grantfirl commented Feb 25, 2019

This PR restores functionality of the SCM for working with ccpp-framework and ccpp-physics masters.

Includes the following code changes:

  • updated to ccpp_prebuild_config.py to be consistent with changes to FV3 version and changes to CCPP-framework/master
  • updated GFS_typedefs.F90 and gmtb_scm_type_defs.F90 to be consistent with FV3 versions
  • updates to suite_SCM_CPT_advanced.xml and suite_SCM_GFS_suite2.xml to correspond to the suites 2 and 3 of the GMTB/EMC advanced physics test
  • updates to case_config files to use newly named/updated SDFs
  • moved input namelists to scm/etc/case_config/input_namelists

NOTE: As of this PR, there is still an issue related to Thompson-MP initialization that has not been debugged yet, so do not run with suite_SCM_GSD*.xml.

…cheme; create 5 suites (control, control + GFDL MP, CPT advanced, csawmgshoc, GSD) for both active surface fluxes and prescribed surface fluxes; update case configuration files to point to new input namelists and for their names to reflect the suite being called; move case input namelists to /scm/etc/case_config/input_namelists; add scm/src/CCPP_typedefs.F90 to reflect latest changes to GFDL MP (not used in SCM since changes have to do with 32-bit running of fast GFDL MP, but kept for compiling purposes); modified GFS_typedefs.F90 and gmtb_scm_type_defs.f90 to work with latest commits of ccpp-physics
@climbfuji
Copy link
Collaborator

Ok, I am trying this and NCAR/ccpp-physics#210 now ...

@@ -153,6 +159,7 @@ subroutine gmtb_scm_main_sub()
stop
end if

physics%Model(i)%first_time_step = .true.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe the (i) should be a (j).

Copy link
Collaborator

Choose a reason for hiding this comment

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

Plus, that line should be two lines up before the "end do" of the do j=1, scm_state%n_cols ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep, this should also be outside of the time loop. No need to set this every time step. I just now created a new loop over (i=1 to n_cols) immediately above the time loop to fix this. Thanks for the catch.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This may have just fixed it. Just ran two cases without error. You're a bonafide genius, Dom!

Copy link
Collaborator

Choose a reason for hiding this comment

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

It's running through in debug mode now as well. Passing on the compliments to my Macbook and the GNU compilers ...

…hemes; added SDFs corresponding to 'suite2' of the advanced physics test; added case configuration and namelists for suite2, added plot_config for suites 1,2,3 comparison
@grantfirl
Copy link
Collaborator Author

For reference, the following plots were generated with the following suites:
S1 = suite_SCM_GFS_2017_updated_gfdlmp.xml (corresponding to suite 1 of advanced physics test)
S2 = suite_SCM_GFS_suite2.xml (corresponding to suite 2 of advanced physics test)
S3 = suite_SCM_CPT_advanced.xml (corresponding to suite 3 of advanced physics test)

These plots represent output from the TWP-ICE maritime deep convection case. Given that suite 3 is so different near the surface, I'm unsure that it is being run correctly. I'll need to double-check this later.

Mean temperature, water vapor, cloud water over the active period:
profiles_mean_T.pdf
profiles_mean_qv.pdf
profiles_mean_qc.pdf
Sensible and latent heat fluxes (W m-2) over the active time period:
time_series_shf.pdf
time_series_lhf.pdf

Copy link
Contributor

@llpcarson llpcarson left a comment

Choose a reason for hiding this comment

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

looks good to me

@grantfirl grantfirl merged commit f5a8aa2 into NCAR:master Mar 18, 2019
@grantfirl grantfirl deleted the update_SDFs branch June 11, 2019 21:37
@grantfirl grantfirl restored the update_SDFs branch June 11, 2019 21:37
@grantfirl grantfirl deleted the update_SDFs branch June 11, 2019 21:37
dustinswales pushed a commit to dustinswales/ccpp-scm that referenced this pull request May 16, 2022
Updating SCM codebase to work with CCPP physics and framework changes since the new year (plus updating SDFs and input namelists)
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.

3 participants