psmile_int2char.F90
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 subroutine psmile_int2char (number, string, ipos)
00012
00013
00014
00015 use PSMILe_common, dummy_interface => PSMILe_int2char
00016
00017 implicit none
00018
00019
00020
00021 integer,Intent(In) :: number
00022
00023
00024
00025
00026
00027
00028 character(len=*), Intent(InOut) :: string
00029
00030
00031
00032 integer,Intent(InOut) :: ipos
00033
00034
00035
00036
00037
00038
00039 character(len=5) :: format
00040 integer :: length
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061 Character(len=len_cvs_string), save :: mycvs =
00062 '$Id: psmile_int2char.F90 2325 2010-04-21 15:00:07Z valcke $'
00063
00064
00065
00066
00067
00068 length = int ( log10 (dble(abs(number))+0.5d0) ) + 1
00069 if (number .lt. 0) length = length + 1
00070
00071
00072
00073 write (format, '(''(i'', i2, '')'')') length
00074 if (ipos+length .le. len(string)) &
00075 write (string (ipos+1:), format) number
00076
00077 ipos = ipos + length
00078
00079 end subroutine PSMILe_int2char