Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@amstokely
Copy link
Contributor

@amstokely amstokely commented Jul 5, 2024

Prior to releasing MPAS v8.2.0, several changes necessitated updates to the GNU Makefiles. These changes included:

  • Inclusion of the noamp library
  • Renaming of several existing files
  • Removing the physics_mmm directory from the source code and moving it to its own GitHub repository
  • Adding a source file to the init atmosphere core
  • Modifying how the registry is processed

Unfortunately, the CMake build files were not updated accordingly, resulting in the loss of CMake support in MPAS v8.2.

This PR includes the necessary updates to the CMake files, enabling MPAS to be configured and built with CMake. These updates ensure that the latest version of MPAS can be used with mpas-jedi and allow MPAS-Model to be compiled using both GNU and Intel compilation suites.

@amstokely amstokely force-pushed the atmosphere/fix_cmake branch from c8d7afb to ab70a66 Compare July 8, 2024 20:14
@amstokely amstokely marked this pull request as ready for review July 9, 2024 22:28
@amstokely amstokely marked this pull request as draft July 10, 2024 16:16
@amstokely amstokely marked this pull request as ready for review July 10, 2024 16:16
@mgduda mgduda self-requested a review July 10, 2024 19:51
@amstokely amstokely force-pushed the atmosphere/fix_cmake branch 2 times, most recently from a6f7588 to 86dcc65 Compare July 15, 2024 16:23
.gitignore Outdated Show resolved Hide resolved
src/framework/mpas_dmpar.F Show resolved Hide resolved
src/core_atmosphere/CMakeLists.txt Outdated Show resolved Hide resolved
@amstokely amstokely force-pushed the atmosphere/fix_cmake branch from 444965c to 8893dbb Compare July 16, 2024 19:51
@mgduda mgduda self-requested a review July 16, 2024 19:52
This commit restores CMake support for the atmosphere core, which broke
due to changes made prior to the version 8.2 release. The breaking
changes included moving the physics_mmm directory to its own git
repository. This is accounted for in CMake by using FetchContent to clone
the correct version of the physics_mmm source code directory based on
the MPAS model git version. Additionally, this commit builds the noahmp
library that was added to the code base. Previously, this library only
supported being built with a hardcoded GNU Makefile. This commit also
accounts for the new registry preprocessing arguments that make the
registry processing core-agnostic. These changes re-enable a seamless
build process for the atmosphere core and improve modularity and
maintainability.
This commit restores CMake support for the atmosphere core, which broke
due to changes made prior to the version 8.2 release. The breaking
changes were a result of the addition of mpas_init_atm_thompson_aerosols.F
to the init_atmosphere core without updating the CMakeLists.txt. To fix
this problem, this file was appended to the list of source files in the
init_atmosphere core's CMakeLists.txt.
@amstokely amstokely force-pushed the atmosphere/fix_cmake branch from 8893dbb to 2c3e974 Compare July 16, 2024 19:58
Copy link
Contributor

@mgduda mgduda 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 these fixes -- all looks good to me!

@mgduda mgduda merged commit 7f2640a into MPAS-Dev:hotfix-v8.2.1 Jul 16, 2024
mgduda added a commit that referenced this pull request Aug 7, 2024
This merge addresses several issues in the MPAS-Atmosphere model and in the MPAS
infrastructure. Specific changes in this merge include:

* Improved detection of an 'mpi_f08' module (PR #1202), as well as improved
  detection of netCDF and PnetCDF library paths (PR #1203), in the top-level
  Makefile.

* The addition of a missing dependency in the physics Makefile to correct
  parallel build issues (PR #1204).

* Fixes to the CMake build files used by MPAS-JEDI (PR #1205).

* Fixes to double-precision builds of MPAS-Atmosphere (PR #1207, PR #1208).

* Correction of the calculation of height AGL used in the computation of 1-km
  radar reflectivity fields (PR #1213).

* Correction of an issue that prevented the MYNN PBL scheme from being used
  without also using the Thompson aerosol-aware microphysics (PR #1215).

* Fixes to allow MPAS-Atmosphere to be built without physics (i.e., dynamics-
  only builds) (PR #1221).

* Various code cleanup and minor corrections (PR #1206, PR #1212, PR #1224,
  PR #1226).
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.