build_identifier_runtime_info Function

private function build_identifier_runtime_info(self)

Returns an identifier of the system and build: "system.compiler.githash".

Type Bound

runtime_info_type

Arguments

Type IntentOptional Attributes Name
class(runtime_info_type), intent(inout) :: self

Return Value character(len=50)


Contents


Source Code

  function build_identifier_runtime_info(self)
    implicit none
    class(runtime_info_type), intent(inout) :: self
    character(len=50) :: build_identifier_runtime_info
    character(len=:), allocatable :: git_hash

    git_hash = self%get_git_hash(7)
    build_identifier_runtime_info = trim(self%get_gk_system())&
         //"."//trim(self%get_compiler_name())&
         //'.'//git_hash(1:7)

    if(self%get_git_modified()) then
      build_identifier_runtime_info = trim(build_identifier_runtime_info(1:41))//'.modified'
    end if

  end function build_identifier_runtime_info