MOM6
|
Set of time utilities for converting between FMS and ESMF time type.
Data Types | |
interface | esmf2fms_time |
Converts time from FMS to ESMF format. More... | |
interface | fms2esmf_cal |
Converts calendar from FMS to ESMF format. More... | |
Functions/Subroutines | |
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... | |
type(time_type) function | esmf2fms_time_t (time) |
Converts date from ESMF format to FMS format. More... | |
type(time_type) function | esmf2fms_timestep (timestep) |
Converts time-interval from ESMF format to FMS format. More... | |
type(esmf_time) function, public | fms2esmf_time (time, calkind) |
Converts date from FMS format to ESMF format. More... | |
type(time_type) function, public | string_to_date (string, rc) |
Converts a string (I4.4,I2.2,I2.2,".",I2.2,I2.2,I2.2) that represents yr, mon, day, hr, min, sec to a FMS data format. More... | |
|
private |
Converts date from ESMF format to FMS format.
[in] | time | ESMF time structure |
Definition at line 82 of file time_utils.F90.
|
private |
Converts time-interval from ESMF format to FMS format.
[in] | timestep | time-interval following ESMF format [s] |
Definition at line 104 of file time_utils.F90.
|
private |
Sets fms2esmf_cal_c to the corresponding ESMF calendar type.
[in] | calendar | Type of calendar |
Definition at line 41 of file time_utils.F90.
|
private |
Sets fms2esmf_cal_i to the corresponding ESMF calendar type.
[in] | calendar | Type of calendar |
Definition at line 63 of file time_utils.F90.
type(esmf_time) function, public time_utils_mod::fms2esmf_time | ( | type(time_type), intent(in) | time, |
type(esmf_calkind_flag), intent(in), optional | calkind | ||
) |
Converts date from FMS format to ESMF format.
[in] | time | FMS time structure |
[in] | calkind | ESMF calendar structure |
Definition at line 125 of file time_utils.F90.
type(time_type) function, public time_utils_mod::string_to_date | ( | character(len=15), intent(in) | string, |
integer, intent(out), optional | rc | ||
) |
Converts a string (I4.4,I2.2,I2.2,".",I2.2,I2.2,I2.2) that represents yr, mon, day, hr, min, sec to a FMS data format.
[in] | string | String representing a date |
[out] | rc | ESMF error handler |
Definition at line 155 of file time_utils.F90.