Print version.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(object), | intent(in) | :: | self |
Object data. |
||
character(len=*), | intent(in), | optional | :: | pref |
Prefixing string. |
subroutine print_version(self, pref) !< Print version. class(object), intent(in) :: self !< Object data. character(*), intent(in), optional :: pref !< Prefixing string. character(len=:), allocatable :: prefd !< Prefixing string. prefd = '' ; if (present(pref)) prefd = pref write(self%version_lun,'(A)')prefd//self%progname//' version '//self%version if (self%license /= '') then write(self%version_lun,'(A)')prefd//self%license endif if (self%authors /= '') then write(self%version_lun,'(A)')prefd//self%authors endif endsubroutine print_version