Convert a C type unit string into value (m)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(kind=C_CHAR, len=1), | intent(in), | dimension(:) | :: | string |
function unit2IUc(string) result (met) !! Convert a C type unit string into value (m) implicit none real(kind=R8) :: met character(kind=C_CHAR), dimension(:), intent(in) :: string character(len=2) :: chaine chaine = string(1)//string(2) met = unit2IUf(chaine) return endfunction unit2IUc