gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
gdncxtypename.f90
Go to the documentation of this file.
1
15
32subroutine gdncxtypename(ixtype, xtype)
33 use netcdf, only: &
34 & nf90_byte, &
35 & nf90_char, &
36 & nf90_short, &
37 & nf90_int, &
38 & nf90_float, &
39 & nf90_double
40 implicit none
41 integer, intent(in):: ixtype
42 character(*), intent(out):: xtype
43 select case(ixtype)
44 case(0)
45 xtype = "error"
46 case(nf90_char)
47 xtype = "char"
48 case(nf90_byte)
49 xtype = "byte"
50 case(nf90_short)
51 xtype = "short"
52 case(nf90_int)
53 xtype = "int"
54 case(nf90_float)
55 xtype = "float"
56 case(nf90_double)
57 xtype = "double"
58 case default
59 xtype = ""
60 end select
61end subroutine gdncxtypename
subroutine gdncxtypename(ixtype, xtype)