Skip to content

Commit

Permalink
Merge pull request #1012 from KineticTheory/fix_ifort1913_warnings
Browse files Browse the repository at this point in the history
Fix warnings reported by Intel ifort 19.1.3.
  • Loading branch information
RyanWollaeger authored Jan 10, 2021
2 parents 1761272 + 085863d commit 94cf450
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit 94cf450

Please sign in to comment.