version Subroutine

subroutine version(unit)

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: unit

Source Code

subroutine version(unit)
   integer, intent(in) :: unit
   character(len=:), allocatable :: version_string

   call get_mctc_version(string=version_string)
   write(unit, '(a, *(1x, a))') &
      & prog_name, "version", version_string

end subroutine version