Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | comm |
SUBROUTINE mp_comm_free(comm)
INTEGER, INTENT(INOUT) :: comm
CHARACTER(LEN=*), PARAMETER :: routineN = 'mp_comm_free'
INTEGER :: handle, ierr
ierr = 0
CALL timeset(routineN, handle)
#if defined(__parallel)
CALL mpi_comm_free(comm, ierr)
IF (ierr /= 0) CALL mp_stop(ierr, "mpi_comm_free @ "//routineN)
debug_comm_count = debug_comm_count - 1
#else
MARK_USED(comm)
#endif
CALL timestop(handle)
END SUBROUTINE mp_comm_free