Converts calendar from FMS to ESMF format.
Definition at line 21 of file time_utils.F90.
|
type(esmf_calkind_flag) function | fms2esmf_cal_c (calendar) |
| Sets fms2esmf_cal_c to the corresponding ESMF calendar type. More...
|
|
type(esmf_calkind_flag) function | fms2esmf_cal_i (calendar) |
| Sets fms2esmf_cal_i to the corresponding ESMF calendar type. More...
|
|
◆ fms2esmf_cal_c()
type(esmf_calkind_flag) function time_utils_mod::fms2esmf_cal::fms2esmf_cal_c |
( |
character(len=*), intent(in) |
calendar | ) |
|
|
private |
Sets fms2esmf_cal_c to the corresponding ESMF calendar type.
- Returns
- ESMF calendar type
- Parameters
-
[in] | calendar | Type of calendar |
Definition at line 41 of file time_utils.F90.
41 type(ESMF_CALKIND_FLAG) :: fms2esmf_cal_c
42 character(len=*),
intent(in) :: calendar
44 select case( uppercase(trim(calendar)) )
46 fms2esmf_cal_c = esmf_calkind_gregorian
48 fms2esmf_cal_c = esmf_calkind_julian
50 fms2esmf_cal_c = esmf_calkind_noleap
52 fms2esmf_cal_c = esmf_calkind_360day
54 fms2esmf_cal_c = esmf_calkind_nocalendar
56 call mpp_error(fatal, &
57 'ocean_solo: ocean_solo_nml entry calendar must be one of GREGORIAN|JULIAN|NOLEAP|THIRTY_DAY|NO_CALENDAR.' )
◆ fms2esmf_cal_i()
type(esmf_calkind_flag) function time_utils_mod::fms2esmf_cal::fms2esmf_cal_i |
( |
integer, intent(in) |
calendar | ) |
|
|
private |
Sets fms2esmf_cal_i to the corresponding ESMF calendar type.
- Returns
- ESMF calendar structure
- Parameters
-
[in] | calendar | Type of calendar |
Definition at line 63 of file time_utils.F90.
63 type(ESMF_CALKIND_FLAG) :: fms2esmf_cal_i
64 integer,
intent(in) :: calendar
67 case(thirty_day_months)
68 fms2esmf_cal_i = esmf_calkind_360day
70 fms2esmf_cal_i = esmf_calkind_gregorian
72 fms2esmf_cal_i = esmf_calkind_julian
74 fms2esmf_cal_i = esmf_calkind_noleap
76 fms2esmf_cal_i = esmf_calkind_nocalendar
The documentation for this interface was generated from the following file:
- /glade/work/altuntas/cesm.sandboxes/cesm2_2_alpha_X_mom/components/mom/MOM6/config_src/nuopc_driver/time_utils.F90