Go to the source code of this file.
◆ gdncxtypename()
| subroutine gdncxtypename |
( |
integer, intent(in) | ixtype, |
|
|
character(*), intent(out) | xtype ) |
Definition at line 3 of file gdncxtypename.f90.
4 use netcdf, only: &
5 & nf90_byte, &
6 & nf90_char, &
7 & nf90_short, &
8 & nf90_int, &
9 & nf90_float, &
10 & nf90_double
11 implicit none
12 integer, intent(in):: ixtype
13 character(*), intent(out):: xtype
14 select case(ixtype)
15 case(0)
16 xtype = "error"
17 case(nf90_char)
18 xtype = "char"
19 case(nf90_byte)
20 xtype = "byte"
21 case(nf90_short)
22 xtype = "short"
23 case(nf90_int)
24 xtype = "int"
25 case(nf90_float)
26 xtype = "float"
27 case(nf90_double)
28 xtype = "double"
29 case default
30 xtype = ""
31 end select