D.4.4 Initialized_Data_Index Procedure

The main documentation of the Initialized_Data_Index Procedure contains additional explanation of this code listing.

  function Initialized_Data_Index (Index) result(Initialized)

    ! Use associations.

    use Caesar_Flags_Module, only: initialized_flag

    ! Input variable.

    type(Data_Index_type), intent(in) :: Index  ! Data_Index to be checked.

    ! Output variable.

    type(logical) :: Initialized          ! Initialized condition boolean.


    ! Verify requirements - none.

    ! Set initialized boolean.

    Initialized = Index%Initialized == initialized_flag

    ! Verify guarantees - none.

  end function Initialized_Data_Index

Michael L. Hall