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

Fix warnings reported by Intel ifort 19.1.3. #1012

Merged
merged 1 commit into from
Jan 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/c4/fc4/Draco_MPI.F90
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ subroutine check_mpi_error(error)
#ifdef C4_MPI
integer :: error_string_len, ierror
character(MPI_MAX_ERROR_STRING) :: error_string
external mpi_error_string, MPI_Abort

! Check and report a nonzero error code
if (error .ne. 0) then
Expand All @@ -62,6 +63,7 @@ end subroutine check_mpi_error
subroutine fc4_mpi_init(ierr)
implicit none
integer, intent(out) :: ierr
external mpi_init, mpi_comm_size, mpi_comm_rank

ierr = 0
fc4_rank = 0
Expand All @@ -86,6 +88,7 @@ subroutine fc4_mpi_finalize(ierr)
implicit none
integer, intent(out) :: ierr
#ifdef C4_MPI
external mpi_finalize
call mpi_finalize(ierr)
call check_mpi_error(ierr)
#endif
Expand All @@ -98,6 +101,7 @@ subroutine fc4_mpi_barrier(ierr)
implicit none
integer, intent(out) :: ierr
#ifdef C4_MPI
external mpi_barrier
call mpi_barrier(MPI_COMM_WORLD,ierr)
call check_mpi_error(ierr)
#endif
Expand Down