mp_comm_op_eq Function

private impure elemental function mp_comm_op_eq(comm1, comm2)

Type Bound

mp_comm_type

Arguments

Type IntentOptional Attributes Name
class(mp_comm_type), intent(in) :: comm1
class(mp_comm_type), intent(in) :: comm2

Return Value logical


Source Code

      ELEMENTAL IMPURE LOGICAL FUNCTION mp_comm_op_eq(comm1, comm2)
         CLASS(mp_comm_type), INTENT(IN) :: comm1, comm2

#if defined(__parallel) && defined(__USE_MPI_F08)
         mp_comm_op_eq = (comm1%handle%mpi_val .EQ. comm2%handle%mpi_val)
#else
         mp_comm_op_eq = (comm1%handle .EQ. comm2%handle)
#endif

      END FUNCTION mp_comm_op_eq