Skip to content

Recent change in MMM-physics breaks MPAS-Model #1420

Description

@eap

NCAR/MMM-physics#16 was submitted several hours ago breaking jedi-bundle which depends on MPAS-Model 8.2.1. I'm not sure if the change breaks all existing tags of MPAS-Model or just 8.2.1, although the nature of the issue makes me suspect that all builders of MPAS-model are going to encounter the issue.

Build error

 Building Fortran object mpas/src/core_atmosphere/CMakeFiles/core_atmosphere.dir/physics/physics_wrf/module_bl_gwdo.F.o
/workdir/bundle/mpas/src/core_atmosphere/physics/physics_wrf/module_bl_gwdo.F:215:49:

  215 |                     ,errmsg=errmsg,errflg=errflg)
      |                                                 1
Error: Missing actual argument for argument 'omax' at (1)
make[2]: *** [mpas/src/core_atmosphere/CMakeFiles/core_atmosphere.dir/build.make:2769: mpas/src/core_atmosphere/CMakeFiles/core_atmosphere.dir/physics/physics_wrf/module_bl_gwdo.F.o] Error 1

Suspected root cause

I found this line of code in core_atmosphere/CMakeLists.txt:102-108 which references NCAR/MMM-Physics without a git tag or hash. So any new changes that break API compatibility will end up breaking core_atmosphere.

if(NOT EXISTS ${ATMOSPHERE_CORE_PHYSICS_MMM_DIR})
    set(PHYSICS_MMM_REPO_URL "https://github.com/NCAR/MMM-physics")
    execute_process(COMMAND git clone ${PHYSICS_MMM_REPO_URL} ${ATMOSPHERE_CORE_PHYSICS_MMM_DIR}
                    RESULT_VARIABLE GIT_CLONE_RESULT
                    OUTPUT_VARIABLE GIT_CLONE_OUTPUT
                    ERROR_VARIABLE GIT_CLONE_ERROR)
    if(NOT GIT_CLONE_RESULT EQUAL 0)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    AtmosphereBuild SystemChanges related to the build system, either `Make` or `CMake`.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions