25 module column_diagnostics_mod
33 use constants_mod,
only: constants_init, pi, radian
34 use mpp_mod,
only: input_nml_file
35 use 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
94 namelist / column_diagnostics_nml / &
106 logical :: module_is_initialized = .false.
148 if (module_is_initialized)
return
160 read (input_nml_file, column_diagnostics_nml, iostat=io)
166 if (
mpp_pe() == mpp_root_pe())
then
168 write (iunit, nml=column_diagnostics_nml)
171 module_is_initialized = .true.
188 integer,
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 column_diagnostics_init
Initialization routine for column_diagnostics_mod.
real(kind=r8_kind) crit_xdistance
model grid points must be within crit_xdistance in longitude of the requested diagnostics point coord...
subroutine, public close_column_diagnostics_units(diag_units)
close_column_diagnostics_units closes any open column_diagnostics files associated with the calling m...
integer function, public check_nml_error(IOSTAT, NML_NAME)
Checks the iostat argument that is returned after reading a namelist and determines if the error code...
subroutine, public write_version_number(version, tag, unit)
Prints to the log file (or a specified unit) the version id string and tag name.
subroutine, public fms_init(localcomm, alt_input_nml_path)
Initializes the FMS module and also calls the initialization routines for all modules in the MPP pack...
subroutine, public error_mesg(routine, message, level)
Print notes, warnings and error messages; terminates program for warning and error messages....
integer function stdlog()
This function returns the current standard fortran unit numbers for log messages. Log messages,...
integer function mpp_npes()
Returns processor count for current pelist.
integer function mpp_pe()
Returns processor ID.
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.
character(len=9) function, public month_name(n)
Returns a character string containing the name of the month corresponding to month number n.
Type to represent amounts of time. Implemented as seconds and days to allow for larger intervals.