Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: CMake build missing mpi_f08 module paths #488

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

scrasmussen
Copy link
Member

The fix

  • finds the MPI package and requires mpi_f08 module.
  • include the MPI module paths, this fixes the following use mpi_f08 error in framework/src/ccpp_types.F90

Current Error:

$ make
[  0%] Building Fortran object ccpp/framework/src/CMakeFiles/ccpp_framework.dir/ccpp_types.F90.o
/glade/work/soren/src/ccpp/upstream/scm-upstream/ccpp/framework/src/ccpp_types.F90:22:9:

   22 |     use mpi_f08, only: MPI_Comm
      |         1
Fatal Error: Cannot open module file 'mpi_f08.mod' for reading at (1): No such file or directory
compilation terminated.

…, this fixes use mpi_f08 error in framework/src/ccpp_types.F90
Copy link
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.

Thanks, Soren. I was just running into this bug after I installed spack-stack on my local machine and was trying to compile.

@grantfirl grantfirl merged commit f9dbf4f into NCAR:main Jul 1, 2024
18 of 23 checks passed
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.

2 participants