create_null_comm Function

private function create_null_comm() result(comm)

Creates an invalid/null communicator object that can be used for initialization or to represent absence of a communicator.

Arguments

None

Return Value type(comm_t)


Called by

proc~~create_null_comm~2~~CalledByGraph proc~create_null_comm~2 create_null_comm interface~comm_null~2 comm_null interface~comm_null~2->proc~create_null_comm~2 proc~create_comm_from_handle~2 create_comm_from_handle proc~create_comm_from_handle~2->proc~create_null_comm~2 interface~comm_from_handle~2 comm_from_handle interface~comm_from_handle~2->proc~create_comm_from_handle~2

Source Code

   function create_null_comm() result(comm)
   !! Creates an invalid/null communicator object that can be used
   !! for initialization or to represent absence of a communicator.
      type(comm_t) :: comm

      ! Explicitly initialize to null/invalid state
      ! The only communicator there is.
      comm%m_rank = 0
      comm%m_size = 1
      comm%is_valid = .false.
   end function create_null_comm