status_codes.F90 Source File


Files dependent on this one

sourcefile~~status_codes.f90~~AfferentGraph sourcefile~status_codes.f90 status_codes.F90 sourcefile~interfaces.f90 interfaces.F90 sourcefile~interfaces.f90->sourcefile~status_codes.f90 sourcefile~udsystem.f90 UDSystem.F90 sourcefile~udsystem.f90->sourcefile~status_codes.f90 sourcefile~udsystem.f90->sourcefile~interfaces.f90 sourcefile~udunits2f.f90 udunits2f.F90 sourcefile~udunits2f.f90->sourcefile~status_codes.f90 sourcefile~udunits2f.f90->sourcefile~interfaces.f90 sourcefile~udunits2f.f90->sourcefile~udsystem.f90 sourcefile~convertunitsaction.f90 ConvertUnitsAction.F90 sourcefile~convertunitsaction.f90->sourcefile~udunits2f.f90 sourcefile~fieldspec.f90~2 FieldSpec.F90 sourcefile~fieldspec.f90~2->sourcefile~udunits2f.f90 sourcefile~fieldspec.f90~2->sourcefile~convertunitsaction.f90 sourcefile~fieldunits.f90 FieldUnits.F90 sourcefile~fieldunits.f90->sourcefile~udunits2f.f90 sourcefile~mapl_initialize.f90 MAPL_Initialize.F90 sourcefile~mapl_initialize.f90->sourcefile~udunits2f.f90 sourcefile~test_udsystem.pf Test_UDSystem.pf sourcefile~test_udsystem.pf->sourcefile~udsystem.f90 sourcefile~test_udsystem.pf->sourcefile~udunits2f.f90 sourcefile~test_udunits2f.pf Test_udunits2f.pf sourcefile~test_udunits2f.pf->sourcefile~udsystem.f90 sourcefile~test_udunits2f.pf->sourcefile~udunits2f.f90 sourcefile~bracketspec.f90 BracketSpec.F90 sourcefile~bracketspec.f90->sourcefile~fieldspec.f90~2 sourcefile~make_itemspec.f90 make_itemSpec.F90 sourcefile~make_itemspec.f90->sourcefile~fieldspec.f90~2 sourcefile~make_itemspec.f90->sourcefile~bracketspec.f90 sourcefile~modelverticalgrid.f90 ModelVerticalGrid.F90 sourcefile~modelverticalgrid.f90->sourcefile~fieldspec.f90~2 sourcefile~test_addfieldspec.pf Test_AddFieldSpec.pf sourcefile~test_addfieldspec.pf->sourcefile~fieldspec.f90~2 sourcefile~test_bracketspec.pf Test_BracketSpec.pf sourcefile~test_bracketspec.pf->sourcefile~fieldspec.f90~2 sourcefile~test_bracketspec.pf->sourcefile~bracketspec.f90 sourcefile~test_fieldinfo.pf Test_FieldInfo.pf sourcefile~test_fieldinfo.pf->sourcefile~fieldspec.f90~2 sourcefile~test_fieldspec.pf Test_FieldSpec.pf sourcefile~test_fieldspec.pf->sourcefile~fieldspec.f90~2 sourcefile~can_connect_to.f90 can_connect_to.F90 sourcefile~can_connect_to.f90->sourcefile~modelverticalgrid.f90 sourcefile~can_connect_to.f90~2 can_connect_to.F90 sourcefile~can_connect_to.f90~2->sourcefile~modelverticalgrid.f90 sourcefile~can_connect_to.f90~3 can_connect_to.F90 sourcefile~can_connect_to.f90~3->sourcefile~modelverticalgrid.f90 sourcefile~initialize_advertise.f90 initialize_advertise.F90 sourcefile~initialize_advertise.f90->sourcefile~make_itemspec.f90 sourcefile~test_modelverticalgrid.pf Test_ModelVerticalGrid.pf sourcefile~test_modelverticalgrid.pf->sourcefile~make_itemspec.f90 sourcefile~test_modelverticalgrid.pf->sourcefile~modelverticalgrid.f90

Source Code

! 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