int_to_string Function

private pure function int_to_string(i) result(str)

Convert integer to string

Arguments

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

Return Value character(len=:), allocatable


Called by

proc~~int_to_string~~CalledByGraph proc~int_to_string int_to_string proc~read_xyz_string read_xyz_string proc~read_xyz_string->proc~int_to_string proc~read_xyz_file read_xyz_file proc~read_xyz_file->proc~read_xyz_string proc~initialize_system_geometry initialize_system_geometry proc~initialize_system_geometry->proc~read_xyz_file

Variables

Type Visibility Attributes Name Initial
character(len=20), private :: buffer

Source Code

   pure function int_to_string(i) result(str)
      !! Convert integer to string
      integer, intent(in) :: i
      character(len=:), allocatable :: str
      character(len=20) :: buffer

      write (buffer, '(I0)') i
      str = trim(adjustl(buffer))
   end function int_to_string