Skip to content

Remove CAM dependencies and add CCPP layer for PUMAS v1 routines - #71

Merged
Katetc merged 17 commits into
ESCOMP:main_camfrom
nusbaume:ccpp_prep
Mar 10, 2025
Merged

Remove CAM dependencies and add CCPP layer for PUMAS v1 routines#71
Katetc merged 17 commits into
ESCOMP:main_camfrom
nusbaume:ccpp_prep

Conversation

@nusbaume

@nusbaume nusbaume commented Jan 16, 2025

Copy link
Copy Markdown
Contributor

This PR removes all explicit uses of CAM and/or CESM share modules, and instead adds internal PUMAS routines to accomplish the same goals. The one exception is for calls to wv_sat_methods which will need to remain a dependency for now (but can likely be CCPP-ized as well later). Part of this effort included removing the no-longer-used micro_pumas_data.F90 file.

This PR also adds a CCPP Fortran module and metadata file to enable CCPP-compliant calls to micro_pumas_init and micro_pumas_tend, as well as a stub metadata file for the proc_rates_type DDT, which will need to be visible to the CCPP-framework in order for it to be passed to external CCPP schemes (e.g. diagnostics).

Finally, this PR fixes #72

Testing:

Successfully passed all aux_cam tests on Derecho with the Intel compiler using cam6_4_055 baselines. Also passed all aux_pumas tests except for the one test failure described in #70

@nusbaume nusbaume self-assigned this Jan 16, 2025
@nusbaume
nusbaume requested a review from Katetc January 16, 2025 21:24

@Katetc Katetc left a comment

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.

Phew! I did it. I didn't see much that was actually an issue except the units on DCS. Thanks Jesse!

Comment thread Tag_Notes.readme Outdated
Comment thread micro_pumas_diags.F90
Comment thread micro_pumas_diags.meta
Comment thread tau_neural_net_quantile.F90
Comment thread micro_pumas_utils.F90 Outdated
Comment thread micro_pumas_ccpp.meta
Comment thread micro_pumas_ccpp.meta Outdated
Comment thread micro_pumas_ccpp.meta
Comment thread micro_pumas_ccpp.meta Outdated
Comment thread micro_pumas_ccpp.meta
@nusbaume
nusbaume requested a review from Katetc February 28, 2025 18:16
@nusbaume

Copy link
Copy Markdown
Contributor Author

Thanks for reviewing @Katetc! I am just letting you know that I think I have responded to all of your requests, and have asked for a re-review. Thanks again!

@Katetc Katetc left a comment

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.

Thanks for all of this work, Jessie!

@Katetc
Katetc merged commit 8e61d3f into ESCOMP:main_cam Mar 10, 2025
wkchuang added a commit to wkchuang/PUMAS that referenced this pull request Mar 24, 2025
commit 8e61d3f
Merge: d2683f2 c9bff7e
Author: Kate Thayer-Calder <katec@ucar.edu>
Date:   Mon Mar 10 16:38:26 2025 -0600

    Merge pull request ESCOMP#71 from nusbaume/ccpp_prep

    Remove CAM dependencies and add CCPP layer for PUMAS v1 routines

commit c9bff7e
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Fri Feb 28 10:54:10 2025 -0700

    Add modifications requested during code review.

commit a165913
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Fri Feb 21 16:13:53 2025 -0700

    Move variable initialization to inside GPU-ized loop.

commit 685a20b
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Fri Feb 21 15:51:37 2025 -0700

    Initialize local variables to zero (ESCOMP/PUMAS issue ESCOMP#72).

commit 2b44b58
Merge: 7044b6b a8a10b6
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Fri Feb 7 16:10:25 2025 -0700

    Merge remote-tracking branch 'origin/ccpp_prep' into ccpp_prep

commit 7044b6b
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Fri Feb 7 16:06:45 2025 -0700

    Fix bad dimension in metadata file,
    and change subroutine dummy argument declarations to not specify dimension sizes.

commit a8a10b6
Author: peverwhee <courtneyp@ucar.edu>
Date:   Thu Jan 30 14:27:17 2025 -0700

    fix stdnames for a couple of tendency variables

commit fb7bbed
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Thu Jan 16 14:41:56 2025 -0700

    Fix typo in comment.

commit 7cde106
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Thu Jan 16 08:47:49 2025 -0700

    Add stub proc_rates DDT metadata file, fix comments, and update Tag Notes.

commit fa085ce
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Tue Jan 14 16:18:50 2025 -0700

    Fix errors found during a CAM run, and fix micro_pumas_ccpp.meta file using framework script.

commit c5a15a3
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Fri Jan 10 13:51:09 2025 -0700

    Fix syntax errors found during compilation.

commit fd86c7f
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Thu Jan 9 15:52:31 2025 -0700

    Update dependency metadata listing to include wv_sat_methods.F90.

commit 79cabd3
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Wed Jan 8 16:06:45 2025 -0700

    Finish CCPP interface for core PUMAS routines.

commit 7a08cd5
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Mon Dec 23 12:32:29 2024 -0700

    Add remaining input and output arguments to CCPP run (tend) routine.

commit 434778d
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Fri Dec 6 12:03:09 2024 -0700

    Add input arguments to CCPP run (tend) routine.

commit f820633
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Tue Nov 19 15:29:46 2024 -0700

    Add CCPP init phase, and perform additional clean-up.

commit 42f2222
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Wed Nov 13 11:16:57 2024 -0700

    Remove unused 'micro_pumas_data.F90' file.

commit 769f7a3
Author: Jesse Nusbaumer <nusbaume@ucar.edu>
Date:   Thu Nov 7 15:46:25 2024 -0700

    First attempt at removing/replacing non-portable CESM share code.
@nusbaume
nusbaume deleted the ccpp_prep branch September 29, 2025 20:37
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.

Error in micro_pumas_v1

4 participants