25module column_diagnostics_mod
27use fms_mod,
only: fms_init, mpp_pe, mpp_root_pe, &
28 mpp_npes, check_nml_error, &
29 error_mesg, fatal, note, warning, &
30 stdlog, write_version_number
33use constants_mod,
only: constants_init, pi, radian
34use mpp_mod,
only: input_nml_file
35use platform_mod,
only: r4_kind, r8_kind, fms_file_len
55#include<file_version.h>
69 module procedure initialize_diagnostic_columns_r4
70 module procedure initialize_diagnostic_columns_r8
74 module procedure column_diagnostics_header_r4
75 module procedure column_diagnostics_header_r8
94namelist / column_diagnostics_nml / &
106logical :: module_is_initialized = .false.
148 if (module_is_initialized)
return
160 read (input_nml_file, column_diagnostics_nml, iostat=io)
161 ierr = check_nml_error(io,
'column_diagnostics_nml')
165 call write_version_number(
"COLUMN_DIAGNOSTICS_MOD", version)
166 if (mpp_pe() == mpp_root_pe())
then
168 write (iunit, nml=column_diagnostics_nml)
171 module_is_initialized = .true.
188integer,
dimension(:),
intent(in) :: diag_units
206 do nn=1,
size(diag_units(:))
207 if (diag_units(nn) /= -1)
then
208 close(diag_units(nn), iostat=io )
209 if(io/=0)
call error_mesg(
'column_diagnostics_mod',
'Error in closing file ', fatal)
221#include "column_diagnostics_r4.fh"
222#include "column_diagnostics_r8.fh"
225 end module column_diagnostics_mod
real(kind=r8_kind) crit_ydistance
model grid points must be within crit_ydistance in latitude of the requested diagnostics point coordi...
subroutine, public close_column_diagnostics_units(diag_units)
close_column_diagnostics_units closes any open column_diagnostics files associated with the calling m...
real(kind=r8_kind) crit_xdistance
model grid points must be within crit_xdistance in longitude of the requested diagnostics point coord...
subroutine, public column_diagnostics_init
Initialization routine for column_diagnostics_mod.
character(len=9) function, public month_name(n)
Returns a character string containing the name of the month corresponding to month number n.
subroutine, public get_date(time, year, month, day, hour, minute, second, tick, err_msg)
Gets the date for different calendar types. Given a time_interval, returns the corresponding date und...
subroutine, public time_manager_init()
Initialization routine. Writes the version information to the log file.
Type to represent amounts of time. Implemented as seconds and days to allow for larger intervals.