E.2.4 Initialized_Statistics Procedure

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

  function Initialized_Statistics (Statistics) result(Initialized)

    ! Use associations.

    use Caesar_Flags_Module, only: initialized_flag

    ! Input variable.

    ! Statistics to be checked.
    type(Statistics_type), intent(in) :: Statistics  

    ! Output variable.

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


    ! Verify requirements - none.

    ! Set initialized boolean.

    Initialized = Statistics%Initialized == initialized_flag

    ! Verify guarantees - none.

  end function Initialized_Statistics

Michael L. Hall