-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathstatus_codes.F90
37 lines (32 loc) · 1.51 KB
/
status_codes.F90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
! Status values for udunits2 procedures
! The values are the same as the udunits2 utStatus C enum
module ud2f_status_codes
implicit none
enum, bind(c)
enumerator :: &
UT_SUCCESS = 0, & ! Success
UT_BAD_ARG, & ! An argument violates the function's contract
UT_EXISTS, & ! Unit, prefix, or identifier already exists
UT_NO_UNIT, & ! No such unit exists
UT_OS, & ! Operating-system error. See "errno".
UT_NOT_SAME_SYSTEM, & ! The units belong to different unit-systems
UT_MEANINGLESS, & ! The operation on the unit(s) is meaningless
UT_NO_SECOND, & ! The unit-system doesn't have a unit named "second"
UT_VISIT_ERROR, & ! An error occurred while visiting a unit
UT_CANT_FORMAT, & ! A unit can't be formatted in the desired manner
UT_SYNTAX, & ! string unit representation contains syntax error
UT_UNKNOWN, & ! string unit representation contains unknown word
UT_OPEN_ARG, & ! Can't open argument-specified unit database
UT_OPEN_ENV, & ! Can't open environment-specified unit database
UT_OPEN_DEFAULT, & ! Can't open installed, default, unit database
UT_PARSE_ERROR ! Error parsing unit specification
end enum
integer, parameter :: ut_status = kind(UT_SUCCESS)
enum, bind(c)
enumerator :: &
UTF_DUPLICATE_INITIALIZATION = 100, &
UTF_CONVERTER_NOT_INITIALIZED, &
UTF_NOT_INITIALIZED, &
UTF_INITIALIZATION_FAILURE
end enum
end module ud2f_status_codes