!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Tests for git info !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Returns the git hash
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in), | optional | :: | length_in |
function get_git_hash_runtime_info(length_in)
implicit none
integer, optional, intent(in) :: length_in
integer :: length = 40
character(len=40) :: get_git_hash_runtime_info
if( present(length_in) ) then
if( length_in <= 40 ) then
length = length_in
end if
end if
#ifndef GIT_HASH
#define GIT_HASH "unknown"
length=7
#endif
get_git_hash_runtime_info=GIT_HASH(1:length)
end function get_git_hash_runtime_info