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

chgres_cube should build without -fallow-argument-mismatch compile flag #471

Closed
edwardhartnett opened this issue Apr 28, 2021 · 1 comment · Fixed by #865
Closed

chgres_cube should build without -fallow-argument-mismatch compile flag #471

edwardhartnett opened this issue Apr 28, 2021 · 1 comment · Fixed by #865
Assignees
Labels

Comments

@edwardhartnett
Copy link
Collaborator

chgres_cube should build without -fallow-argument-mismatch compile flag.

See #463 for details.

@kgerheiser
Copy link
Contributor

kgerheiser commented Apr 28, 2021

I made a test program using GCC-10 and MPICH. use mpi doesn't work and throws a type mismatch, but using mpi_f08 works.

program test_mpi_bcast
  use mpi_f08 ! mpi_f08 works
  !use mpi ! this throws a type mismatch error
  use iso_fortran_env, only: real64
  implicit none

  character(len=10)              :: temp_num = 'NA'
  real(real64) :: dx
  integer :: error
  

  call MPI_BCAST(temp_num,10,MPI_CHAR,0,MPI_COMM_WORLD,error)
  call MPI_BCAST(dx,1,MPI_REAL8,0,MPI_COMM_WORLD,error)
  
end program test_mpi_bcast

@GeorgeGayno-NOAA GeorgeGayno-NOAA self-assigned this Feb 16, 2022
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Feb 16, 2022
some CMakeLists.txt files. Replace 'use mpi' with 'use mpi_f08'
in chgres_cube.

Fixes ufs-community#471.
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Apr 29, 2022
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 24, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 25, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 25, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 25, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 25, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 25, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 25, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 25, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 25, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 27, 2023
GeorgeGayno-NOAA added a commit that referenced this issue Oct 27, 2023
The "-fallow-argument-mismatch" compiler flag is needed when building chgres_cube 
using GNU v10. Make minor adjustments to the source code to eliminate the need 
for this flag. 

Also, remove this flag from build of other programs that don't require it.

Fixes #471.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants