Skip to content

RRTMGP in CCPP (updates to ccpp_prebuild.py)#270

Merged
climbfuji merged 17 commits into
NCAR:dtc/developfrom
climbfuji:add_rrtmgp_dom
Mar 26, 2020
Merged

RRTMGP in CCPP (updates to ccpp_prebuild.py)#270
climbfuji merged 17 commits into
NCAR:dtc/developfrom
climbfuji:add_rrtmgp_dom

Conversation

@climbfuji
Copy link
Copy Markdown
Collaborator

@climbfuji climbfuji commented Mar 19, 2020

This PR is required for merging RRTMGP into CCPP. It updates/extends the CCPP prebuild script to provide information on CCPP kind and type definitions to the host model.

This is required so that the host model build system (calling/using the ccpp-physics cmake build system) can install and find the Fortran modules containing the definitions of the RRTMGP-internal DDTs, and also the already existing DDTs such as those in GFS_typedefs.F90. This is an important cleanup, because it means we do not have to manually list and compile the type definitions on the host model side (in addition to being compiled and installed by CCPP).

The PR also includes an update of the NCAR dtc/develop branch from the NCAR master branch, as well as an update of the CCPP prebuild scripts to work with Python 3 as described in #271 (this PR was pulled into the current PR and any merge conflicts arising from #271 being based on the release/public-v4 branch were resolved).

Associated PRs:

#270
NCAR/ccpp-physics#411 (includes NCAR/ccpp-physics#413; the latter supersedes NCAR/ccpp-physics#400)
NCAR/fv3atm#32 (includes NCAR/fv3atm#26)
NCAR/ufs-weather-model#29

For detailed information on the RRTMGP code to be committed, see NCAR/ccpp-physics#400.

For regression testing information, see NCAR/ufs-weather-model#29.

climbfuji and others added 15 commits December 10, 2019 13:32
…d metadata2html.py, improved error handling and diagnostic output for ccpp_prebuild.py
…from_dtc_20191210

ufs_public_release: updates from DTC (bugfixes, cleanup, optimization)
…authors

ufs_public_release: update version number and authors
…es_log_messages

ufs_public_release: bugfix for converting optional attribute from new metadata for ccpp_prebuild.py, correct log message for automated unit conversions
release/public-v4: remove reference to libxml2
…c_develop_20200317

Update master from dtc/develop 2020/03/17
…n modules containing CCPP kind and type definitions to host model
Copy link
Copy Markdown
Collaborator

@gold2718 gold2718 left a comment

Choose a reason for hiding this comment

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

Looks okay (could be optimized but not worth it).

Comment thread scripts/ccpp_prebuild.py
schemes_with_path.append(os.path.join(relative_path, scheme_filename))
schemes_with_abspath.append(os.path.abspath(scheme))
# Generate list of schemes with absolute path
schemes_with_abspath = [ os.path.abspath(scheme) for scheme in schemes ]
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.

Is this an unrelated improvement?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, cleanup (in a second place just below/above as well).

Copy link
Copy Markdown
Collaborator

@grantfirl grantfirl left a comment

Choose a reason for hiding this comment

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

Approved.

@climbfuji climbfuji merged commit 3cd0f1e into NCAR:dtc/develop Mar 26, 2020
@climbfuji climbfuji deleted the add_rrtmgp_dom branch June 27, 2022 02:59
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