MPAS-Dev / MPAS-Model

Repository for MPAS models and shared framework releases.
231 stars 307 forks source link

CMake build for MPAS v8.1.0 atmosphere core #1168

Closed amstokely closed 1 month ago

amstokely commented 1 month ago

This PR adds support for building the atmosphere and init atmosphere MPAS cores with CMake vs GNU Make. CMake allows the support MPAS cores to be built outside the repository source directory, simplifies platform/compiler specific linking/compilation flags, and also allows MPAS to be integrated into other CMake managed projects (eg. mpas-jedi). This PR was specifically created so that MPAS v8.1.0 can be used by mpas-jedi.

The CMake build successfully runs a small calculation (240km test on derecho) in single and double precision modes when compiled with GNU 11.4.1 and GNU 12.2.0 compilers. The results are comparable to those obtained when running the same calculation using the current develop branch.

1JunGu commented 1 month ago

why close? a good job

amstokely commented 1 month ago

why close? a good job

I'm cleaning up the commit history and then I'll reopen it!