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

cam6_4_037: Implementation of CCPP-ized tropopause_find with compatibility with current CAM #1135

Merged
merged 25 commits into from
Oct 1, 2024

Conversation

jimmielin
Copy link
Member

@jimmielin jimmielin commented Aug 26, 2024

Closes #1121.

Companion PRs:

This brings in atmospheric_physics with CCPP-ized tropopause_find and a compatibility wrapper in the place of old tropopause.F90 preserving old behavior and bit-for-bit reproducibility.

Minor edits to certain subroutine calls to remove redundant specification of primary=TROP_ALG_TWMO, backup=TROP_ALG_CLIMATE, as that is the default configuration and such specification is unnecessary.

Copy link
Collaborator

@nusbaume nusbaume left a comment

Choose a reason for hiding this comment

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

Great work @jimmielin! I have some suggestions to hopefully cleanup the top-level interfaces in CAM and add some extra sanity checks, but otherwise everything looks good.

src/chemistry/geoschem/chemistry.F90 Outdated Show resolved Hide resolved
src/chemistry/mozart/chemistry.F90 Outdated Show resolved Hide resolved
src/physics/cam/physpkg.F90 Outdated Show resolved Hide resolved
src/physics/cam7/physpkg.F90 Outdated Show resolved Hide resolved
src/physics/rrtmgp/radiation.F90 Outdated Show resolved Hide resolved
src/physics/cam7/micro_pumas_cam.F90 Show resolved Hide resolved
src/physics/cam/tropopause.F90 Outdated Show resolved Hide resolved
src/physics/cam/tropopause.F90 Outdated Show resolved Hide resolved
src/physics/cam/tropopause.F90 Outdated Show resolved Hide resolved
src/physics/cam/tropopause.F90 Outdated Show resolved Hide resolved
Copy link
Collaborator

@nusbaume nusbaume left a comment

Choose a reason for hiding this comment

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

Everything looks great to me now. Thanks!

Copy link
Collaborator

@cacraigucar cacraigucar left a comment

Choose a reason for hiding this comment

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

Mainly comment changes to make them more "long-term". The comments were appropriate during your development (especially to yourself as you are making the mods). Now that we are getting ready to commit, the comments should be less about what "used to be" and more general comments about what the code is doing.

src/physics/cam/tropopause.F90 Outdated Show resolved Hide resolved
src/physics/cam/tropopause.F90 Outdated Show resolved Hide resolved
src/physics/cam/tropopause.F90 Outdated Show resolved Hide resolved
src/physics/cam/tropopause.F90 Outdated Show resolved Hide resolved
src/physics/cam/tropopause.F90 Outdated Show resolved Hide resolved
src/physics/cam/tropopause.F90 Outdated Show resolved Hide resolved
Copy link
Collaborator

@cacraigucar cacraigucar left a comment

Choose a reason for hiding this comment

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

Thanks for the changes. I have one minor edit for clarity.

As a side note - I typically use a known string "CACNOTE" for things I need to address before my final commit. That way I can leave notes to myself during development, but can remove them before they become permanent.

.gitmodules Outdated Show resolved Hide resolved
src/physics/cam/tropopause.F90 Outdated Show resolved Hide resolved
@jimmielin
Copy link
Member Author

As a side note - I typically use a known string "CACNOTE" for things I need to address before my final commit. That way I can leave notes to myself during development, but can remove them before they become permanent.

Thank you, this is good to know. I leave TODOs here and there but had not thought of flagging comments that could be removed in the final commit as well.

@cacraigucar cacraigucar changed the title Implementation of CCPP-ized tropopause_find with compatibility with current CAM cam6_3_037: Implementation of CCPP-ized tropopause_find with compatibility with current CAM Sep 30, 2024
@cacraigucar cacraigucar changed the title cam6_3_037: Implementation of CCPP-ized tropopause_find with compatibility with current CAM cam6_4_037: Implementation of CCPP-ized tropopause_find with compatibility with current CAM Sep 30, 2024
@jimmielin
Copy link
Member Author

All tests passed matching expected pre-existing failures.

The Derecho Intel test for SMS FCSD_HCO did not match baseline at initial attempt and was resubmitted and passed w/o any changes. The test is suspect due to reproducibility issues in HEMCO and may be solved by future GEOS-Chem updates...

➜  aux_run_failing_intel_20240930183121 ./cs.status.aux_run_failing_intel_20240930183121
aux_run_failing_intel_20240930183121: 1 test
  SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h (Overall: PASS) details:
    PASS SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h CREATE_NEWCASE
    PASS SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h XML
    PASS SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h SETUP
    PASS SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h SHAREDLIB_BUILD time=329
    PASS SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h NLCOMP
    PASS SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h MODEL_BUILD time=334
    PASS SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h SUBMIT
    PASS SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h RUN time=464
    PASS SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h GENERATE /glade/derecho/scratch/hplin/aux_run_failing_intel_20240930183121/baselines
    PASS SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h BASELINE /glade/campaign/cesm/community/amwg/cam_baselines/cam6_4_036_intel:
    FAIL SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h MEMCOMP [Errno 2] No such file or directory: '/glade/campaign/cesm/community/amwg/cam_baselines/cam6_4_036_intel/SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h/cpl-mem.log'
    PASS SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h TPUTCOMP
    PASS SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h MEMLEAK insufficient data for memleak test
    PASS SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h SHORT_TERM_ARCHIVER

@jimmielin jimmielin merged commit cf436f7 into ESCOMP:cam_development Oct 1, 2024
2 checks passed
@jimmielin
Copy link
Member Author

Baselines (including failed rerun for SMS_Lh12.f09_f09_mg17.FCSD_HCO.derecho_intel.cam-outfrq3h) archived on Izumi and Derecho

gold2718 pushed a commit to gold2718/CAM that referenced this pull request Oct 16, 2024
Merge pull request ESCOMP#1135 from jimmielin/hplin/tropopause_find

cam6_4_037: Implementation of CCPP-ized tropopause_find with compatibility with current CAM

ESCOMP commit: cf436f7
gold2718 pushed a commit to gold2718/CAM that referenced this pull request Oct 16, 2024
Merge pull request ESCOMP#1135 from jimmielin/hplin/tropopause_find

cam6_4_037: Implementation of CCPP-ized tropopause_find with compatibility with current CAM

ESCOMP commit: cf436f7
gold2718 pushed a commit to gold2718/CAM that referenced this pull request Nov 8, 2024
Merge pull request ESCOMP#1135 from jimmielin/hplin/tropopause_find

cam6_4_037: Implementation of CCPP-ized tropopause_find with compatibility with current CAM

ESCOMP commit: cf436f7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Tag
Development

Successfully merging this pull request may close these issues.

3 participants